Update JLine

Later releases include the TerminalLineSettings patch. Also move call to AnsiConsole.systemInstall() to avoid patching AnsiWindowsTerminal.
This commit is contained in:
zreed
2014-12-06 13:55:50 -05:00
committed by md_5
parent 2dda1b33b0
commit 45be36a7b8
4 changed files with 5 additions and 320 deletions

View File

@@ -10,6 +10,7 @@ import java.util.logging.Logger;
import joptsimple.OptionParser;
import joptsimple.OptionSet;
import net.minecraft.server.MinecraftServer;
import org.fusesource.jansi.AnsiConsole;
public class Main {
public static boolean useJline = true;
@@ -145,7 +146,9 @@ public class Main {
useJline = false;
}
if (!useJline) {
if (useJline) {
AnsiConsole.systemInstall();
} else {
// This ensures the terminal literal will always match the jline implementation
System.setProperty(jline.TerminalFactory.JLINE_TERMINAL, jline.UnsupportedTerminal.class.getName());
}