From 1a7b19cd2474841e6faf84fbb6478778d8f2abdc Mon Sep 17 00:00:00 2001 From: jaseg Date: Sat, 25 Oct 2014 16:41:03 +0200 Subject: Made lolcat clean up after itself by resetting the term color --- lolcat.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); -- cgit