Skip to content

Commit

Permalink
Merge pull request #59 from sschuberth/master
Browse files Browse the repository at this point in the history
Make isXterm() also detect xterm-color and friends
  • Loading branch information
gnodet authored Sep 28, 2016
2 parents b84df55 + 5a3a670 commit eeda18c
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 @@ -119,7 +119,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 eeda18c

Please sign in to comment.