enable color codes in info-board proxy shell command
This commit is contained in:
@@ -1048,7 +1048,7 @@ asio::awaitable<deque<string>> fn_info_board(ShellCommand::Args& args) {
|
|||||||
if (args.command == "info-board-data") {
|
if (args.command == "info-board-data") {
|
||||||
data += phosg::parse_data_string(args.args, nullptr, phosg::ParseDataFlags::ALLOW_FILES);
|
data += phosg::parse_data_string(args.args, nullptr, phosg::ParseDataFlags::ALLOW_FILES);
|
||||||
} else {
|
} else {
|
||||||
data += args.args;
|
data += add_color(args.args);
|
||||||
}
|
}
|
||||||
data.push_back('\0');
|
data.push_back('\0');
|
||||||
data.resize((data.size() + 3) & (~3));
|
data.resize((data.size() + 3) & (~3));
|
||||||
@@ -1058,7 +1058,8 @@ asio::awaitable<deque<string>> fn_info_board(ShellCommand::Args& args) {
|
|||||||
}
|
}
|
||||||
ShellCommand c_info_board("info-board", "info-board TEXT\n\
|
ShellCommand c_info_board("info-board", "info-board TEXT\n\
|
||||||
Set your info board contents. This will affect the current session only,\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);
|
fn_info_board);
|
||||||
ShellCommand c_info_board_data("info-board-data", "info-board-data DATA\n\
|
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\
|
Set your info board contents with arbitrary data. Like the above, affects\n\
|
||||||
|
|||||||
Reference in New Issue
Block a user