summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTravis Watkins <amaranth@ubuntu.com>2012-05-23 15:02:57 -0500
committerTravis Watkins <amaranth@ubuntu.com>2012-05-23 15:32:42 -0500
commitfdddc681d28b6eb90420bde99d2288fe4f702b27 (patch)
treeb69e560739d03680145ffd1ae8628ede0bbbd484
parent478fa4a9694ee379c13d1d17710e2c419b5bd7af (diff)
downloadcraftbukkit-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.xml8
-rw-r--r--src/main/java/jline/AnsiWindowsTerminal.java1
2 files changed, 9 insertions, 0 deletions
diff --git a/pom.xml b/pom.xml
index af8657d1..eccd1d74 100644
--- a/pom.xml
+++ b/pom.xml
@@ -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();