]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
header output: switch off all styles, not just unbold
authorDaniel Stenberg <daniel@haxx.se>
Thu, 12 Jul 2018 09:04:00 +0000 (11:04 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 16 Jul 2018 22:31:39 +0000 (00:31 +0200)
... the "unbold" sequence doesn't work on the mac Terminal.

Reported-by: Zero King
Fixes #2736
Closes #2738

src/tool_cb_hdr.c

index 88ce5e13b8486607a116f7cc67822318a8e9fae8..6419b72048a7fb673b60a9f6054c01800904ffc7 100644 (file)
@@ -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
 
 /*