Improvements

Signed-off-by: 0xf8 <0xf8.dev@proton.me>
This commit is contained in:
0xf8 2023-02-25 12:27:56 -05:00
parent 538c69cbf8
commit eea72f897e
Signed by: 0xf8
GPG Key ID: 446580D758689584
2 changed files with 1 additions and 4 deletions

View File

@ -11,6 +11,3 @@ OR
## install
`install -m755 rbtext /usr/bin`
> Can't get any simpler

View File

@ -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]);
}