Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
cfcb4754
Commit
cfcb4754
authored
Oct 28, 2019
by
antirez
Browse files
LOLWUT 6: always pick a default color sequence.
parent
8337e083
Changes
1
Show whitespace changes
Inline
Side-by-side
src/lolwut6.c
View file @
cfcb4754
...
@@ -59,6 +59,7 @@ static sds renderCanvas(lwCanvas *canvas) {
...
@@ -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
);
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment