From fdddc681d28b6eb90420bde99d2288fe4f702b27 Mon Sep 17 00:00:00 2001 From: Travis Watkins Date: Wed, 23 May 2012 15:02:57 -0500 Subject: [PATCH] Use jansi's Windows support for terminal colors. --- pom.xml | 8 ++++++++ src/main/java/jline/AnsiWindowsTerminal.java | 1 + 2 files changed, 9 insertions(+) diff --git a/pom.xml b/pom.xml index af8657d1f1..eccd1d74f8 100644 --- a/pom.xml +++ b/pom.xml @@ -69,6 +69,7 @@ jar compile + jline jline @@ -76,6 +77,13 @@ jar compile + + org.fusesource.jansi + jansi + 1.8 + jar + compile + org.xerial sqlite-jdbc diff --git a/src/main/java/jline/AnsiWindowsTerminal.java b/src/main/java/jline/AnsiWindowsTerminal.java index df32559741..a6380364db 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();