parent
538c69cbf8
commit
eea72f897e
|
@ -11,6 +11,3 @@ OR
|
|||
|
||||
## install
|
||||
`install -m755 rbtext /usr/bin`
|
||||
|
||||
|
||||
> Can't get any simpler
|
||||
|
|
2
rbtext.c
2
rbtext.c
|
@ -44,7 +44,7 @@ void genColors(char *s) {
|
|||
char *cstr = (char *)malloc(64 + 1);
|
||||
|
||||
for (unsigned long i = 0; i < strlen(s); i++) {
|
||||
unsigned long c = (((t + i) / CONF_COLOR_LAG) % COLORS_SIZE);
|
||||
unsigned long c = ((t + i) / CONF_COLOR_LAG) % COLORS_SIZE;
|
||||
snprintf(cstr, 64, "\e[38;2;%sm", COLORS[c]);
|
||||
printf("%s%c\e[0m",cstr,s[i]);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue