mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-08 11:24:11 +01:00
Allow for the jline console to be overriden in normally unsupported enviroments
By: Thinkofdeath <thinkofdeath@spigotmc.org>
This commit is contained in:
parent
edcd4ced4b
commit
3ad5a522b4
1 changed files with 1 additions and 1 deletions
|
@ -54,7 +54,7 @@
|
|||
+ // CraftBukkit start
|
||||
+ this.options = options;
|
||||
+ // 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");
|
||||
+ Main.useJline = false;
|
||||
+ }
|
||||
|
|
Loading…
Reference in a new issue