Skip to content
Snippets Groups Projects
Commit f6a5e5b5 authored by Grzegorz Daniluk's avatar Grzegorz Daniluk
Browse files

fix colors so that they don't break the terminal

parent c9ff8b07
No related merge requests found
......@@ -85,6 +85,7 @@ void cprintf(int color, const char *fmt, ...)
va_start(ap, fmt);
vprintf(fmt, ap);
va_end(ap);
mprintf("\e[m");
}
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);
vprintf(fmt, ap);
va_end(ap);
mprintf("\e[m");
}
void term_clear()
......
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