Stop tests from leaving a black background

Uses ANSI "default background" color code after closing tests
so any non-black terminals don't remain polluted.

Fixes #1649
Closes #1912
This commit is contained in:
Mariano Pérez Rodríguez 2014-08-05 09:50:44 -03:00 committed by antirez
parent 681de88df4
commit 5afe1e37c7

View File

@ -353,7 +353,7 @@ proc colorstr {color str} {
default {set colorcode {37}} default {set colorcode {37}}
} }
if {$colorcode ne {}} { if {$colorcode ne {}} {
return "\033\[$b;${colorcode};40m$str\033\[0m" return "\033\[$b;${colorcode};49m$str\033\[0m"
} }
} else { } else {
return $str return $str