mirror of
https://github.com/tio/tio.git
synced 2026-05-01 14:57:59 +02:00
Fix xymodem error print outs
This commit is contained in:
parent
d8fb1ab0ca
commit
78f96bd32c
2 changed files with 26 additions and 12 deletions
13
src/print.h
13
src/print.h
|
|
@ -80,6 +80,19 @@ extern char ansi_format[];
|
|||
} \
|
||||
}
|
||||
|
||||
#define tio_error_print(format, args...) \
|
||||
{ \
|
||||
if (!option.mute) \
|
||||
{ \
|
||||
if (print_tainted) \
|
||||
putchar('\n'); \
|
||||
if (option.color < 0) \
|
||||
fprintf (stdout, "\r[%s] Error: " format "\r\n", timestamp_current_time(), ## args); \
|
||||
else \
|
||||
ansi_printf("[%s] Error: " format, timestamp_current_time(), ## args); \
|
||||
} \
|
||||
}
|
||||
|
||||
#define tio_printf(format, args...) \
|
||||
{ \
|
||||
if (!option.mute) \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue