提交 cfcb4754 编写于 作者: A antirez

LOLWUT 6: always pick a default color sequence.

上级 8337e083
......@@ -59,6 +59,7 @@ static sds renderCanvas(lwCanvas *canvas) {
case 1: ce = "0;90;100m"; break; /* Gray 1 */
case 2: ce = "0;37;47m"; break; /* Gray 2 */
case 3: ce = "0;97;107m"; break; /* White */
default: ce = "0;30;40m"; break; /* Just for safety. */
}
text = sdscatprintf(text,"\033[%s \033[0m",ce);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册