mtoensing / Docker-Minecraft-PaperMC-Server

Starts a Minecraft PaperMC server
https://hub.docker.com/r/marctv/minecraft-papermc-server
MIT License
246 stars 92 forks source link

nojline option disables tab-complete and color output and arrow key #50

Closed deluxghost closed 2 years ago

deluxghost commented 2 years ago

while there is a -nojline here:

https://github.com/mtoensing/Docker-Minecraft-PaperMC-Server/blob/f370ac0a969a6eac48d0ac4b3c541219399d4bf9/docker-entrypoint.sh#L23

according to bukkit wiki:

Disables the JLine console, removes the '>', sets the timestamp to vanilla's and sets the language to English. This is useful for users who do not have the Visual C++ 2008 redistributable on Windows. Linux and UNIX users can safely ignore this option

JLine is like gnu readline library, which handles basic console editing, if you disable it, arrow-keys/color/emacs-binds/tab-complete will not work, this is related to #37

it's a linux environment inside docker container, so we can "ignore this option" safely

to resolve it, either remove this option (IMO this is better) or make it configurable via an env var