mirror of
https://github.com/fluencelabs/redis
synced 2025-04-25 18:42:13 +00:00
LOLWUT 6: always pick a default color sequence.
This commit is contained in:
parent
8337e083b6
commit
cfcb475435
@ -59,6 +59,7 @@ static sds renderCanvas(lwCanvas *canvas) {
|
|||||||
case 1: ce = "0;90;100m"; break; /* Gray 1 */
|
case 1: ce = "0;90;100m"; break; /* Gray 1 */
|
||||||
case 2: ce = "0;37;47m"; break; /* Gray 2 */
|
case 2: ce = "0;37;47m"; break; /* Gray 2 */
|
||||||
case 3: ce = "0;97;107m"; break; /* White */
|
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);
|
text = sdscatprintf(text,"\033[%s \033[0m",ce);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user