summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2018-07-12 11:04:00 +0200
committerDaniel Stenberg <daniel@haxx.se>2018-07-17 00:31:39 +0200
commita82372e0fb3aa3ce9ab27687c4d4a738a6ec9064 (patch)
treea63858eb0c6666e04cf9c7edb91b4c742ada7f56
parent092f6815c808489f1cea3df8449e16dff2c35e6b (diff)
downloadcurl-a82372e0fb3aa3ce9ab27687c4d4a738a6ec9064.tar.gz
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
-rw-r--r--src/tool_cb_hdr.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/tool_cb_hdr.c b/src/tool_cb_hdr.c
index 88ce5e13b..6419b7204 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
/*