File tree 1 file changed +3
-2
lines changed
jansi/src/main/java/org/fusesource/jansi
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -135,7 +135,7 @@ private static PrintStream ansiSystem(boolean stdout) {
135
135
int [] mode = new int [1 ];
136
136
if (GetConsoleMode (console , mode ) != 0
137
137
&& SetConsoleMode (console , mode [0 ] | ENABLE_VIRTUAL_TERMINAL_PROCESSING ) != 0 ) {
138
- jansiOutputType = JansiOutputType .PASSTHROUGH ;
138
+ jansiOutputType = JansiOutputType .VIRTUAL_TERMINAL ;
139
139
return newPrintStream (out , enc );
140
140
}
141
141
}
@@ -517,7 +517,8 @@ enum JansiOutputType {
517
517
RESET_ANSI_AT_CLOSE ("like pass through but reset ANSI attributes when closing the stream" ),
518
518
STRIP_ANSI ("strip ANSI escape codes, for example when output is not a terminal" ),
519
519
WINDOWS ("detect ANSI escape codes and transform Jansi-supported ones into a Windows API to get desired effect" +
520
- " (since ANSI escape codes are not natively supported by Windows terminals like cmd.exe or PowerShell)" );
520
+ " (since ANSI escape codes are not natively supported by Windows terminals like cmd.exe or PowerShell)" ),
521
+ VIRTUAL_TERMINAL ("recent Windows support ANSI processing using a windows API call to configure the console in the correct mode" );
521
522
522
523
private final String description ;
523
524
You can’t perform that action at this time.
0 commit comments