From: Daniel Stenberg Date: Thu, 12 Jul 2018 09:04:00 +0000 (+0200) Subject: header output: switch off all styles, not just unbold X-Git-Tag: curl-7_61_1~137 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a82372e0fb3aa3ce9ab27687c4d4a738a6ec9064;p=thirdparty%2Fcurl.git header output: switch off all styles, not just unbold ... the "unbold" sequence doesn't work on the mac Terminal. Reported-by: Zero King Fixes #2736 Closes #2738 --- diff --git a/src/tool_cb_hdr.c b/src/tool_cb_hdr.c index 88ce5e13b8..6419b72048 100644 --- a/src/tool_cb_hdr.c +++ b/src/tool_cb_hdr.c @@ -42,7 +42,10 @@ static char *parse_filename(const char *ptr, size_t len); #define BOLDOFF #else #define BOLD "\x1b[1m" -#define BOLDOFF "\x1b[21m" +/* Switch off bold by settting "all attributes off" since the explicit + bold-off code (21) isn't supported everywhere - like in the mac + Terminal. */ +#define BOLDOFF "\x1b[0m" #endif /*