use different colors for sent and received commands

This commit is contained in:
Martin Michelsen
2022-04-03 23:35:11 -07:00
parent be69f26af5
commit 028078925d
6 changed files with 30 additions and 6 deletions
+2 -1
View File
@@ -64,7 +64,8 @@ void print_received_command(
const void* data,
size_t size,
GameVersion version,
const char* name = nullptr);
const char* name = nullptr,
TerminalFormat color = TerminalFormat::FG_GREEN);
// This function is used in a lot of places to check received command sizes and
// cast them to the appropriate type