Remove console line before printing debugging and on exit

This commit is contained in:
Andreas Eversberg
2016-07-24 09:12:54 +02:00
parent 123979a0f3
commit c273bbc5ff
6 changed files with 44 additions and 8 deletions

View File

@@ -24,6 +24,7 @@
#include <stdint.h>
#include <errno.h>
#include "debug.h"
#include "call.h"
const char *debug_level[] = {
"debug ",
@@ -78,6 +79,7 @@ void _printdebug(const char *file, const char *function, int line, int cat, int
while ((p = strchr(file, '/')))
file = p + 1;
clear_console_text();
// printf("%s%s:%d %s() %s: %s\033[0;39m", debug_cat[cat].color, file, line, function, debug_level[level], buffer);
printf("%s%s:%d %s: %s\033[0;39m", debug_cat[cat].color, file, line, debug_level[level], buffer);
fflush(stdout);