Paper icon indicating copy to clipboard operation
Paper copied to clipboard

GUI console shows legacy formatting codes

Open Malfrador opened this issue 2 years ago • 3 comments

Expected behavior

No formatting codes in the GUI console

Observed/Actual behavior

Legacy formatting codes show up in the GUI console javaw_757B4jeypg

Steps/models to reproduce

  1. Run Paper by double-clicking the .jar
  2. Produce a vanilla message in chat, for example by joining the server.

Plugin and Datapack List

none

Paper version

This server is running Paper version git-Paper-334 (MC: 1.18.2) (Implementing API version 1.18.2-R0.1-SNAPSHOT) (Git: 8d1de8d) You are running the latest version Previous version: git-Paper-71 (MC: 1.18.1)

Other

Tested on vanilla, they do not show up there.

Malfrador avatar May 16 '22 02:05 Malfrador

I cannot replicate this on the latest version. Please re-open this issue if you are capable of reproducing it on latest.

lynxplay avatar Jun 05 '22 16:06 lynxplay

Same issue on build 379.

I also just tried running the server on WSL2. Same result, but instead of a space a � character is displayed. Disabling/enabling use-rgb-for-named-text-colors changes nothing.

I don't think this is important at all, the GUI is kinda meh anyways. But its not happening on vanilla so I made an issue.

Malfrador avatar Jun 09 '22 00:06 Malfrador

Ah I see what you mean, yeah I can reproduce this on 1.18.2. I'll reopen this for now, with a low priority. As you already said, GUI is definitely not the highest of priorities here and it appears the GUI is simply not capable of properly rendering these colour codes.

Or to be more specific, the gui in spigots case just filters out any form of ANSI colour coding, however the regex seems broken for hex-ansi codes.

lynxplay avatar Jun 09 '22 00:06 lynxplay