Made lolcat clean up after itself by resetting the term color
This commit is contained in:
parent
01c43f14c2
commit
1a7b19cd24
1 changed files with 2 additions and 1 deletions
3
lolcat.c
3
lolcat.c
|
|
@ -161,7 +161,8 @@ int main(int argc, char **argv){
|
|||
if(escape_state == 2)
|
||||
printf("\033[38;5;%hhum", codes[cc % ARRAY_SIZE(codes)]);
|
||||
}
|
||||
printf("\n");
|
||||
printf("\n\033[0m");
|
||||
cc = -1;
|
||||
|
||||
fclose(f);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue