Strip colour codes when writing debug msgs to terminal.
This commit is contained in:
@@ -168,6 +168,8 @@ static void debug_print(const char *dbg, const char *buf)
|
|||||||
char buffer[512];
|
char buffer[512];
|
||||||
seprintf(buffer, lastof(buffer), "%sdbg: [%s] %s\n", GetLogPrefix(), dbg, buf);
|
seprintf(buffer, lastof(buffer), "%sdbg: [%s] %s\n", GetLogPrefix(), dbg, buf);
|
||||||
|
|
||||||
|
str_strip_colours(buffer);
|
||||||
|
|
||||||
/* do not write desync messages to the console on Windows platforms, as they do
|
/* do not write desync messages to the console on Windows platforms, as they do
|
||||||
* not seem able to handle text direction change characters in a console without
|
* not seem able to handle text direction change characters in a console without
|
||||||
* crashing, and NetworkTextMessage includes these */
|
* crashing, and NetworkTextMessage includes these */
|
||||||
|
Reference in New Issue
Block a user