3
0
Mirror von https://github.com/PaperMC/Paper.git synchronisiert 2024-12-18 20:40:08 +01:00

Use jansi's Windows support for terminal colors.

Dieser Commit ist enthalten in:
Travis Watkins 2012-05-23 15:02:57 -05:00
Ursprung 478fa4a969
Commit fdddc681d2
2 geänderte Dateien mit 9 neuen und 0 gelöschten Zeilen

Datei anzeigen

@ -69,6 +69,7 @@
<type>jar</type> <type>jar</type>
<scope>compile</scope> <scope>compile</scope>
</dependency> </dependency>
<!-- jline and jansi versions must be kept in sync -->
<dependency> <dependency>
<groupId>jline</groupId> <groupId>jline</groupId>
<artifactId>jline</artifactId> <artifactId>jline</artifactId>
@ -76,6 +77,13 @@
<type>jar</type> <type>jar</type>
<scope>compile</scope> <scope>compile</scope>
</dependency> </dependency>
<dependency>
<groupId>org.fusesource.jansi</groupId>
<artifactId>jansi</artifactId>
<version>1.8</version>
<type>jar</type>
<scope>compile</scope>
</dependency>
<dependency> <dependency>
<groupId>org.xerial</groupId> <groupId>org.xerial</groupId>
<artifactId>sqlite-jdbc</artifactId> <artifactId>sqlite-jdbc</artifactId>

Datei anzeigen

@ -64,6 +64,7 @@ public class AnsiWindowsTerminal
} }
private static boolean detectAnsiSupport() { private static boolean detectAnsiSupport() {
AnsiConsole.systemInstall(); // CraftBukkit - install Windows JNI library
OutputStream out = AnsiConsole.wrapOutputStream(new ByteArrayOutputStream()); OutputStream out = AnsiConsole.wrapOutputStream(new ByteArrayOutputStream());
try { try {
out.close(); out.close();