mirror of
https://github.com/tio/tio.git
synced 2026-05-01 14:57:59 +02:00
Introduce bold color option
Introduce "bold" color option which only apply bold color formatting to existing system color. Also make "bold" the default color option. Fixes all white issue with black on white tio text.
This commit is contained in:
parent
9db7bb4fbb
commit
9733bdf19c
6 changed files with 31 additions and 10 deletions
|
|
@ -42,7 +42,7 @@ extern char ansi_format[];
|
|||
#define ansi_error_printf(format, args...) \
|
||||
{ \
|
||||
if (option.color < 0) \
|
||||
fprintf (stdout, "\r" format "\r\n", ## args); \
|
||||
fprintf (stderr, "\r" format "\r\n", ## args); \
|
||||
else \
|
||||
fprintf (stderr, "\r%s" format ANSI_RESET "\r\n", ansi_format, ## args); \
|
||||
fflush(stderr); \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue