We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e019a75 commit 09722b7Copy full SHA for 09722b7
src/main/java/org/fusesource/jansi/AnsiConsole.java
@@ -247,6 +247,11 @@ private static AnsiPrintStream ansiStream(boolean stdout) {
247
// If we can detect that stdout is not a tty.. then setup
248
// to strip the ANSI sequences..
249
isAtty = isatty(fd) != 0;
250
+ String term = System.getenv("TERM");
251
+ String emacs = System.getenv("INSIDE_EMACS");
252
+ if (isAtty && "dumb".equals(term) && emacs != null && !emacs.contains("comint")) {
253
+ isAtty = false;
254
+ }
255
withException = false;
256
} catch (Throwable ignore) {
257
// These errors happen if the JNI lib is not available for your platform.
0 commit comments