summaryrefslogtreecommitdiff
path: root/lolcat.c
diff options
context:
space:
mode:
authorjaseg <code@jaseg.net>2014-10-25 16:41:03 +0200
committerjaseg <code@jaseg.net>2014-10-25 16:44:33 +0200
commit1a7b19cd2474841e6faf84fbb6478778d8f2abdc (patch)
tree8facbf8bf6b1e4dc63bc4eb8464b1694b0d226b9 /lolcat.c
parent01c43f14c24108598e8857a3f4ed8fd27dfeb959 (diff)
downloadlolcat-1a7b19cd2474841e6faf84fbb6478778d8f2abdc.tar.gz
lolcat-1a7b19cd2474841e6faf84fbb6478778d8f2abdc.tar.bz2
lolcat-1a7b19cd2474841e6faf84fbb6478778d8f2abdc.zip
Made lolcat clean up after itself by resetting the term color
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);