CloudburstMC / Nemisys

The Java implementation of standard Synapse Proxy Protocol.
https://nukkitx.com/wiki/nemisys/
GNU General Public License v3.0
38 stars 17 forks source link

jline issues causing unexpected output in console #67

Closed ZizzyZizzy closed 4 years ago

ZizzyZizzy commented 4 years ago

I've tried every jline option I can find, and none of them work properly with Nemisys when it's run as a background process from a shell script on Linux (such as Multicraft.)

I always get an extra status line after any command (even invalid) is typed in the console:

Nemisys 2.0dev | Online 0/1 | Clients 0 | Memory 3% | U 0.0 D 0.0 kB/s | SynLibTPS 100.0 | SynLibLoad 0.0% | TPS 100.0 | Load 0.45%

These lines are not showing up in the server.log file, so I'm at a loss with how to properly filter them.

What is causing this extra line to be sent to the console when jline.UnsupportedTerminal is used?

ZizzyZizzy commented 4 years ago

OK, so I finally found it in the source code.

display-stats-in-title must be set to off in server.properties to fix this behavior.