Minor, add system property to suppress color output in CLI
This commit is contained in:
+1
@@ -34,6 +34,7 @@ public abstract class PlainTextMessageRenderer implements MessageRenderer {
|
|||||||
// TODO: investigate why ANSI escape codes on Windows only work in REPL for some reason
|
// TODO: investigate why ANSI escape codes on Windows only work in REPL for some reason
|
||||||
private static final boolean COLOR_ENABLED =
|
private static final boolean COLOR_ENABLED =
|
||||||
!SystemInfo.isWindows &&
|
!SystemInfo.isWindows &&
|
||||||
|
!"false".equals(System.getProperty("kotlin.colors.enabled")) &&
|
||||||
CLibrary.isatty(CLibrary.STDERR_FILENO) != 0;
|
CLibrary.isatty(CLibrary.STDERR_FILENO) != 0;
|
||||||
|
|
||||||
private static final String LINE_SEPARATOR = LineSeparator.getSystemLineSeparator().getSeparatorString();
|
private static final String LINE_SEPARATOR = LineSeparator.getSystemLineSeparator().getSeparatorString();
|
||||||
|
|||||||
Reference in New Issue
Block a user