提交 f862e5dd 编写于 作者: M Mariano Pérez Rodríguez 提交者: antirez

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
上级 32168a5e
......@@ -351,7 +351,7 @@ proc colorstr {color str} {
default {set colorcode {37}}
}
if {$colorcode ne {}} {
return "\033\[$b;${colorcode};40m$str\033\[0m"
return "\033\[$b;${colorcode};49m$str\033\[0m"
}
} else {
return $str
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册