summaryrefslogtreecommitdiff
path: root/src/sys
diff options
context:
space:
mode:
Diffstat (limited to 'src/sys')
-rw-r--r--src/sys/sys_main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sys/sys_main.c b/src/sys/sys_main.c
index f1aa6fa8..460e8a22 100644
--- a/src/sys/sys_main.c
+++ b/src/sys/sys_main.c
@@ -241,8 +241,8 @@ void Sys_AnsiColorPrint( const char *msg )
}
else
{
- // Print the color code
- Com_sprintf( buffer, sizeof( buffer ), "\033[%dm",
+ // Print the color code (reset first to clear potential inverse (black))
+ Com_sprintf( buffer, sizeof( buffer ), "\033[0m\033[%dm",
q3ToAnsi[ ColorIndex( *( msg + 1 ) ) ] );
fputs( buffer, stderr );
msg += 2;