Skip to content

Commit

Permalink
Fix ConEmu support for 256 colors, fixes #294
Browse files Browse the repository at this point in the history
  • Loading branch information
gnodet committed Jul 17, 2018
1 parent bc8fd90 commit 62d6088
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ public class JansiWinSysTerminal extends AbstractWindowsTerminal {
public static JansiWinSysTerminal createTerminal(String name, String type, boolean ansiPassThrough, Charset encoding, int codepage, boolean nativeSignals, SignalHandler signalHandler, boolean paused) throws IOException {
Writer writer;
if (ansiPassThrough) {
if (type == null) {
type = OSUtils.IS_CONEMU ? TYPE_WINDOWS_256_COLOR : TYPE_WINDOWS;
}
writer = new JansiWinConsoleWriter();
} else {
long console = GetStdHandle(STD_OUTPUT_HANDLE);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ public class JnaWinSysTerminal extends AbstractWindowsTerminal {
public static JnaWinSysTerminal createTerminal(String name, String type, boolean ansiPassThrough, Charset encoding, int codepage, boolean nativeSignals, SignalHandler signalHandler, boolean paused) throws IOException {
Writer writer;
if (ansiPassThrough) {
if (type == null) {
type = OSUtils.IS_CONEMU ? TYPE_WINDOWS_256_COLOR : TYPE_WINDOWS;
}
writer = new JnaWinConsoleWriter(consoleOut);
} else {
IntByReference mode = new IntByReference();
Expand Down

0 comments on commit 62d6088

Please sign in to comment.