summaryrefslogtreecommitdiff
path: root/lolcat.c
diff options
context:
space:
mode:
Diffstat (limited to 'lolcat.c')
-rw-r--r--lolcat.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lolcat.c b/lolcat.c
index 9a8ac2d..464dc70 100644
--- a/lolcat.c
+++ b/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);