From 45bf7a9ab961cec025f6569ef47ec520198c803f Mon Sep 17 00:00:00 2001 From: md_5 Date: Sat, 13 Dec 2014 11:13:36 +1100 Subject: [PATCH] Move ansi console system install right into the bootstrap. --- bootstrap/src/main/java/net/md_5/bungee/Bootstrap.java | 4 ++++ proxy/src/main/java/net/md_5/bungee/BungeeCord.java | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/bootstrap/src/main/java/net/md_5/bungee/Bootstrap.java b/bootstrap/src/main/java/net/md_5/bungee/Bootstrap.java index b7cb81e2..f05b0d3e 100644 --- a/bootstrap/src/main/java/net/md_5/bungee/Bootstrap.java +++ b/bootstrap/src/main/java/net/md_5/bungee/Bootstrap.java @@ -1,5 +1,7 @@ package net.md_5.bungee; +import org.fusesource.jansi.AnsiConsole; + public class Bootstrap { @@ -12,6 +14,8 @@ public class Bootstrap return; } + AnsiConsole.systemInstall(); + BungeeCordLauncher.main( args ); } } diff --git a/proxy/src/main/java/net/md_5/bungee/BungeeCord.java b/proxy/src/main/java/net/md_5/bungee/BungeeCord.java index cd382526..d59bcc87 100644 --- a/proxy/src/main/java/net/md_5/bungee/BungeeCord.java +++ b/proxy/src/main/java/net/md_5/bungee/BungeeCord.java @@ -181,7 +181,7 @@ public class BungeeCord extends ProxyServer } Log.setOutput( new PrintStream( ByteStreams.nullOutputStream() ) ); // TODO: Bug JLine - AnsiConsole.systemInstall(); + consoleReader = new ConsoleReader(); consoleReader.setExpandEvents( false );