From 7e21d8a9a120bb1e78ea1280dc0af379881ef227 Mon Sep 17 00:00:00 2001 From: Martin Michelsen Date: Sun, 22 Feb 2026 20:33:26 -0800 Subject: [PATCH] enable color codes in info-board proxy shell command --- src/ShellCommands.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/ShellCommands.cc b/src/ShellCommands.cc index 3bbb368e..d0aa8780 100644 --- a/src/ShellCommands.cc +++ b/src/ShellCommands.cc @@ -1048,7 +1048,7 @@ asio::awaitable> fn_info_board(ShellCommand::Args& args) { if (args.command == "info-board-data") { data += phosg::parse_data_string(args.args, nullptr, phosg::ParseDataFlags::ALLOW_FILES); } else { - data += args.args; + data += add_color(args.args); } data.push_back('\0'); data.resize((data.size() + 3) & (~3)); @@ -1058,7 +1058,8 @@ asio::awaitable> fn_info_board(ShellCommand::Args& args) { } ShellCommand c_info_board("info-board", "info-board TEXT\n\ Set your info board contents. This will affect the current session only,\n\ - and will not be saved for future sessions.", + and will not be saved for future sessions. Escape codes (e.g. $C4) can be\n\ + used.", fn_info_board); ShellCommand c_info_board_data("info-board-data", "info-board-data DATA\n\ Set your info board contents with arbitrary data. Like the above, affects\n\