Commit f6a5e5b5 authored by Grzegorz Daniluk's avatar Grzegorz Daniluk

fix colors so that they don't break the terminal

parent c9ff8b07
...@@ -85,6 +85,7 @@ void cprintf(int color, const char *fmt, ...) ...@@ -85,6 +85,7 @@ void cprintf(int color, const char *fmt, ...)
va_start(ap, fmt); va_start(ap, fmt);
vprintf(fmt, ap); vprintf(fmt, ap);
va_end(ap); va_end(ap);
mprintf("\e[m");
} }
void pcprintf(int row, int col, int color, const char *fmt, ...) void pcprintf(int row, int col, int color, const char *fmt, ...)
...@@ -95,6 +96,7 @@ void pcprintf(int row, int col, int color, const char *fmt, ...) ...@@ -95,6 +96,7 @@ void pcprintf(int row, int col, int color, const char *fmt, ...)
va_start(ap, fmt); va_start(ap, fmt);
vprintf(fmt, ap); vprintf(fmt, ap);
va_end(ap); va_end(ap);
mprintf("\e[m");
} }
void term_clear() void term_clear()
......
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