PaperMC / Paper

The most widely used, high performance Minecraft server that aims to fix gameplay and mechanics inconsistencies
https://papermc.io/
Other
9.89k stars 2.29k forks source link

RGB colors in console no longer render properly #9849

Open zombachu opened 1 year ago

zombachu commented 1 year ago

Expected behavior

On an older build of Paper this is what it looked like:

Screenshot 2023-10-16 at 10 13 03 PM

Raw terminal output: [07:12:52 INFO]: [0;38:5:59m[[0;38:5:167m![0;38:5:59m] [0;38:5:167mUnable to find a matching player for the name: [0;38:5:231mzombachu[0;38:5:167m.

Observed/Actual behavior

On a 1.20.2 build of Paper it now looks like this:

Screenshot 2023-10-16 at 10 13 13 PM

Raw terminal output: [07:12:56 INFO]: [!] Unable to find a matching player for the name: zombachu.

Steps/models to reproduce

Above command basically did this

Bukkit.getConsoleSender().sendMessage("§x§5§6§5§f§6§8[§x§e§3§4§7§3§c!§x§5§6§5§f§6§8] §x§e§3§4§7§3§cUnable to find a matching player for the name: §x§f§5§f§9§f§fzombachu§x§e§3§4§7§3§c.")

Plugin and Datapack List

ArmorStandTools, BanManager, CleanroomGenerator, CoreProtect, Multiverse-Core, Multiverse-Inventories, Multiverse-NetherPortals, *PermissionsEx, PlotSquared, ProtocolLib, SynergyCore, SynergyCreative, SynergyLobby, SynergySurvival, VanishNoPacket, VoxelSniper, WorldEdit, WorldGuard

Paper version

[07:29:56 INFO]: This server is running Paper version git-Paper-240 (MC: 1.20.2) (Implementing API version 1.20.2-R0.1-SNAPSHOT) (Git: e57af7d) You are 1 version(s) behind Download the new version at: https://papermc.io/downloads/paper Previous version: git-Paper-233 (MC: 1.20.2)

Other

In-game colors are fine

pop4959 commented 1 year ago

The ANSI parser in Paper was recently updated, so the exact representation of certain colors may differ depending on detected terminal support. Does the old color match more closely to what it appears as in-game, or is it just different? It might help to provide a screenshot just so that it's more clear.

zombachu commented 1 year ago

The old color matches what It is in game. Here's a better example, sorry about that:

Screenshot 2023-10-16 at 11 08 02 PM Screenshot 2023-10-16 at 11 07 59 PM

(and in-game for the command before)

Screenshot 2023-10-16 at 11 11 48 PM

Terminal I'm using is iTerm2, system macOS terminal has the same issue too