From 3bcc9e64cf5788c81586a3485137e7000898a9b2 Mon Sep 17 00:00:00 2001 From: Jakub Wilk Date: Sun, 8 May 2016 22:04:46 +0200 Subject: [PATCH] Used \r in color_printf() \033[300D is an unusual way to move the cursor back to column 1. Use straightforward \r instead. --- src/include/tio/print.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/include/tio/print.h b/src/include/tio/print.h index a5c2a90..3083f4a 100644 --- a/src/include/tio/print.h +++ b/src/include/tio/print.h @@ -33,7 +33,7 @@ #define ANSI_COLOR_RESET "\x1b[0m" #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); #ifdef DEBUG