File: 01-bypass-tty-detection.patch

package info (click to toggle)
jansi 2.4.0-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 916 kB
  • sloc: ansic: 6,587; java: 3,889; sh: 703; xml: 319; makefile: 55
file content (16 lines) | stat: -rw-r--r-- 634 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Description: Bypass the TTY detection and assume it's always true. Otherwise
 the Maven output is no longer colorized when building a package with debuild
 or dpkg-buildpackage. This was the behavior of jansi 1.x
Author: Emmanuel Bourg <ebourg@apache.org>
Forwarded: not-needed
--- a/src/main/java/org/fusesource/jansi/AnsiConsole.java
+++ b/src/main/java/org/fusesource/jansi/AnsiConsole.java
@@ -259,7 +259,7 @@
             isAtty = false;
             withException = true;
         }
-        isatty = isAtty;
+        isatty = true;
 
         final AnsiOutputStream.WidthSupplier width;
         final AnsiProcessor processor;