Commit 3a28108e authored by Alessandro Rubini's avatar Alessandro Rubini

wr_mon: restore normal color at exit

Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
parent dab55a86
......@@ -14,6 +14,8 @@ static int term_usecolor;
void term_restore(void)
{
if (term_usecolor)
printf("\033[0m"); /* restore normal color */
tcsetattr(STDIN_FILENO,TCSANOW,&oldkey);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment