Archiviert
13
0

Allow for the jline console to be overriden in normally unsupported enviroments

Dieser Commit ist enthalten in:
Thinkofdeath 2015-06-11 12:59:36 +01:00
Ursprung 1880a9c0b6
Commit b023c53e03

Datei anzeigen

@ -54,7 +54,7 @@
+ // CraftBukkit start + // CraftBukkit start
+ this.options = options; + this.options = options;
+ // Try to see if we're actually running in a terminal, disable jline if not + // Try to see if we're actually running in a terminal, disable jline if not
+ if (System.console() == null) { + if (System.console() == null && System.getProperty("jline.terminal") == null) {
+ System.setProperty("jline.terminal", "jline.UnsupportedTerminal"); + System.setProperty("jline.terminal", "jline.UnsupportedTerminal");
+ Main.useJline = false; + Main.useJline = false;
+ } + }