Yukkuricraft / YakumoDash

Webtool for managing all Yukkuricraft software infrastructure
0 stars 0 forks source link

Extraneous whitespace in server console when rendering ANSI escape codes #29

Closed remiscarlet closed 3 months ago

remiscarlet commented 10 months ago

ServerConsoleDialogComponent is not rendering text as expected. This seems specific to text that contains ANSI escape codes.

Text received from websocket according to logs:

�[33m--------- �[37mHelp: Index (1/11) �[33m--------------------
�[0m�[37mUse /help [n] to get page n of help.
�[0m�[37m�[33mAliases: �[37mLists command aliases
�[0m�[37m�[33mBukkit: �[37mAll commands for Bukkit
�[0m�[37m�[33mMinecraft: �[37mAll commands for Minecraft
�[0m�[37m�[33m/advancement: �[37mA Mojang provided command.
�[0m�[37m�[33m/attribute: �[37mA Mojang provided command.
�[0m�[37m�[33m/ban: �[37mA Mojang provided command.
�[0m�[37m�[33m/ban-ip: �[37mA Mojang provided command.
�[0m�[37m�[33m/banlist: �[37mA Mojang provided command.
�[0m

Rendered as:

Screenshot 2023-12-23 at 6 30 08 PM