gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] [gnurl] 14/153: header output: switch off all styles, not j


From: gnunet
Subject: [GNUnet-SVN] [gnurl] 14/153: header output: switch off all styles, not just unbold
Date: Tue, 11 Sep 2018 12:51:25 +0200

This is an automated email from the git hooks/post-receive script.

ng0 pushed a commit to branch master
in repository gnurl.

commit a82372e0fb3aa3ce9ab27687c4d4a738a6ec9064
Author: Daniel Stenberg <address@hidden>
AuthorDate: Thu Jul 12 11:04:00 2018 +0200

    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
---
 src/tool_cb_hdr.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

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
 
 /*

-- 
To stop receiving notification emails like this one, please contact
address@hidden



reply via email to

[Prev in Thread] Current Thread [Next in Thread]