diff --git a/jansi/src/main/java/org/fusesource/jansi/AnsiConsole.java b/jansi/src/main/java/org/fusesource/jansi/AnsiConsole.java index 096d8bc1..17a4ad0d 100644 --- a/jansi/src/main/java/org/fusesource/jansi/AnsiConsole.java +++ b/jansi/src/main/java/org/fusesource/jansi/AnsiConsole.java @@ -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"); } /**