diff options
author | jaseg <code@jaseg.net> | 2014-10-25 16:41:03 +0200 |
---|---|---|
committer | jaseg <code@jaseg.net> | 2014-10-25 16:44:33 +0200 |
commit | 1a7b19cd2474841e6faf84fbb6478778d8f2abdc (patch) | |
tree | 8facbf8bf6b1e4dc63bc4eb8464b1694b0d226b9 | |
parent | 01c43f14c24108598e8857a3f4ed8fd27dfeb959 (diff) | |
download | lolcat-1a7b19cd2474841e6faf84fbb6478778d8f2abdc.tar.gz lolcat-1a7b19cd2474841e6faf84fbb6478778d8f2abdc.tar.bz2 lolcat-1a7b19cd2474841e6faf84fbb6478778d8f2abdc.zip |
Made lolcat clean up after itself by resetting the term color
-rw-r--r-- | lolcat.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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); |