-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Console colors no longer showing post Jline fix. #11637
Comments
Does |
Yes, adding this flag has fixed colors for us. 👍 |
Seems like color capability detection broke further with that commit, as before it was just deciding to downsample colors in some environments like docker/Pterodactyl, even if it supported the true colors |
We no longer include jansi, and looks like the ansi serialiser doesn't declare its own dep on that publically, and so it's just falling back to trying to detect based on the env. These types of detections always kinda suck as there is no good universal way to detect this kind of thing |
ok, so I spend a bit of time looking at this. cat is right that we no longer include jansi (as we don't need it). oh and you can remove -Djdk.console=java.base as paper sets that now Paper/patches/server/0011-Use-TerminalConsoleAppender-for-console-improvements.patch Line 476 in d8b66dd
|
we now treat every interactive terminal as supporting at least 16 colors and make the (COLOR)TERM checks more broad ref: PaperMC/Paper#11637 Co-authored-by: Riley Park <[email protected]>
we now treat every interactive terminal as supporting at least 16 colors and make the (COLOR)TERM checks more broad ref: PaperMC/Paper#11637 Co-authored-by: Riley Park <[email protected]>
Should be resolved now that we bumped to adventure 4.18 👍 |
Confirmed fixed. :) |
Expected behavior
Console colors to properly display.
Observed/Actual behavior
No console colors.
Using LuckPerms as an example as I'm sure we're all aware of how it looks with colors on startup:
https://i.imgur.com/4zOacF1.png
Steps/models to reproduce
Environment:
Paper 1.21.3-44-master@85bfdc0
Windows Server 2022 21H2 (OS Build 20348.2849)
Java 23.0.1 (64-Bit Server VM 23.0.1+11-39)
Startup line currently using:
-Xms12288M -Xmx12288M -XX:+UseG1GC -XX:+ParallelRefProcEnabled -XX:MaxGCPauseMillis=200 -XX:+UnlockExperimentalVMOptions -XX:+DisableExplicitGC -XX:+AlwaysPreTouch -XX:G1HeapWastePercent=5 -XX:G1MixedGCCountTarget=4 -XX:InitiatingHeapOccupancyPercent=15 -XX:G1MixedGCLiveThresholdPercent=90 -XX:G1RSetUpdatingPauseTimePercent=5 -XX:SurvivorRatio=32 -XX:+PerfDisableSharedMem -XX:MaxTenuringThreshold=1 -Dusing.aikars.flags=https://mcflags.emc.gs -Daikars.new.flags=true -XX:G1NewSizePercent=30 -XX:G1MaxNewSizePercent=40 -XX:G1HeapRegionSize=8M -XX:G1ReservePercent=20 -XX:G1NewSizePercent=40 -XX:G1MaxNewSizePercent=50 -XX:G1HeapRegionSize=16M -XX:G1ReservePercent=15 -Djdk.console=java.base -jar paper.jar --nogui
PS: I have tried with removing -Djdk.console=java.base and get same result. I have also tried with Java 21, same result.
Plugin and Datapack List
On request.
Paper version
Paper 1.21.3-44-master@85bfdc0
Other
Let me know if you require further information.
The text was updated successfully, but these errors were encountered: