diff options
author | Travis Watkins <amaranth@ubuntu.com> | 2012-05-23 15:02:57 -0500 |
---|---|---|
committer | Travis Watkins <amaranth@ubuntu.com> | 2012-05-23 15:32:42 -0500 |
commit | fdddc681d28b6eb90420bde99d2288fe4f702b27 (patch) | |
tree | b69e560739d03680145ffd1ae8628ede0bbbd484 | |
parent | 478fa4a9694ee379c13d1d17710e2c419b5bd7af (diff) | |
download | craftbukkit-fdddc681d28b6eb90420bde99d2288fe4f702b27.tar craftbukkit-fdddc681d28b6eb90420bde99d2288fe4f702b27.tar.gz craftbukkit-fdddc681d28b6eb90420bde99d2288fe4f702b27.tar.lz craftbukkit-fdddc681d28b6eb90420bde99d2288fe4f702b27.tar.xz craftbukkit-fdddc681d28b6eb90420bde99d2288fe4f702b27.zip |
Use jansi's Windows support for terminal colors.
-rw-r--r-- | pom.xml | 8 | ||||
-rw-r--r-- | src/main/java/jline/AnsiWindowsTerminal.java | 1 |
2 files changed, 9 insertions, 0 deletions
@@ -69,6 +69,7 @@ <type>jar</type> <scope>compile</scope> </dependency> + <!-- jline and jansi versions must be kept in sync --> <dependency> <groupId>jline</groupId> <artifactId>jline</artifactId> @@ -77,6 +78,13 @@ <scope>compile</scope> </dependency> <dependency> + <groupId>org.fusesource.jansi</groupId> + <artifactId>jansi</artifactId> + <version>1.8</version> + <type>jar</type> + <scope>compile</scope> + </dependency> + <dependency> <groupId>org.xerial</groupId> <artifactId>sqlite-jdbc</artifactId> <version>3.7.2</version> diff --git a/src/main/java/jline/AnsiWindowsTerminal.java b/src/main/java/jline/AnsiWindowsTerminal.java index df325597..a6380364 100644 --- a/src/main/java/jline/AnsiWindowsTerminal.java +++ b/src/main/java/jline/AnsiWindowsTerminal.java @@ -64,6 +64,7 @@ public class AnsiWindowsTerminal } private static boolean detectAnsiSupport() { + AnsiConsole.systemInstall(); // CraftBukkit - install Windows JNI library OutputStream out = AnsiConsole.wrapOutputStream(new ByteArrayOutputStream()); try { out.close(); |