From ead72b7753d4fc5bf2ad72fd27af38007475858f Mon Sep 17 00:00:00 2001 From: Jonathan G Rennison Date: Tue, 16 Feb 2016 19:52:41 +0000 Subject: [PATCH] Strip colour codes when writing debug msgs to terminal. --- src/debug.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/debug.cpp b/src/debug.cpp index 99ed3ef055..016496eb86 100644 --- a/src/debug.cpp +++ b/src/debug.cpp @@ -168,6 +168,8 @@ static void debug_print(const char *dbg, const char *buf) char buffer[512]; 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 * not seem able to handle text direction change characters in a console without * crashing, and NetworkTextMessage includes these */