Improve console implementation

Rewrite console improvements (console colors, tab completion,
persistent input line, ...) using JLine 3.x and TerminalConsoleAppender.

New features:
  - Support console colors for Vanilla commands
  - Add console colors for warnings and errors
  - Server can now be turned off safely using CTRL + C. JLine catches
    the signal and the implementation shuts down the server cleanly.
  - Support console colors and persistent input line when running in
    IntelliJ IDEA

Other changes:
  - Update JLine to 3.3.1 (from 2.12.1)
  - Server starts 1-2 seconds faster thanks to optimizations in Log4j
    configuration
This commit is contained in:
Minecrell
2017-06-09 19:05:12 +02:00
parent 3b5e6cd48f
commit e0aa38d35e
4 changed files with 620 additions and 28 deletions

4
.gitignore vendored
View File

@@ -42,11 +42,13 @@ work/test-server
*.ipr
*.iws
.idea/
out/
# Linux temp files
*~
# other stuff
run/
Paper-Server
Paper-API
@@ -55,4 +57,4 @@ PaperSpigot-API
Paperclip.jar
paperclip.jar
paperclip-*.jar
paperclip.properties
paperclip.properties