Skip to content

Commit

Permalink
Make isXterm() also detect xterm-color and friends
Browse files Browse the repository at this point in the history
  • Loading branch information
sschuberth committed Jun 20, 2016
1 parent e180ab1 commit 5a3a670
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion jansi/src/main/java/org/fusesource/jansi/AnsiConsole.java
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,8 @@ public void close() throws IOException {
}

private static boolean isXterm() {
return "xterm".equals(System.getenv("TERM"));
String term = System.getenv("TERM");
return term != null && term.startsWith("xterm");
}

/**
Expand Down

0 comments on commit 5a3a670

Please sign in to comment.