mirror of
https://github.com/tio/tio.git
synced 2026-05-01 14:57:59 +02:00
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:
parent
c1e1ffa1c2
commit
3bcc9e64cf
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue