Used \r in color_printf()

\033[300D is an unusual way to move the cursor back to column 1.
Use straightforward \r instead.
This commit is contained in:
Jakub Wilk 2016-05-08 22:04:46 +02:00
parent c1e1ffa1c2
commit 3bcc9e64cf

View file

@ -33,7 +33,7 @@
#define ANSI_COLOR_RESET "\x1b[0m" #define ANSI_COLOR_RESET "\x1b[0m"
#define color_printf(format, args...) \ #define color_printf(format, args...) \
fprintf (stdout, "\033[300D" ANSI_COLOR_YELLOW format ANSI_COLOR_RESET "\033[300D\n", ## args); \ fprintf (stdout, "\r" ANSI_COLOR_YELLOW format ANSI_COLOR_RESET "\r\n", ## args); \
fflush(stdout); fflush(stdout);
#ifdef DEBUG #ifdef DEBUG