From 03537e4bb15c9433dc88b4102aabe34f01e8d0b7 Mon Sep 17 00:00:00 2001 From: Emerson Pinter Date: Fri, 19 Apr 2013 10:15:37 -0300 Subject: [PATCH] Send ANSI reset on cleanup Terminal should receive an ansi reset when the program is interrupted, or the color set by colortail will remain in the shell. --- main.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/main.cc b/main.cc index d997474..d9f65f4 100644 --- a/main.cc +++ b/main.cc @@ -50,6 +50,7 @@ int main(int argc, char **argv) // callback function for signals void clean_up(int i) { + cout << ANSI_RESET_STR << endl << ends; if (colortail) delete colortail; exit(1);