Closed
Description
I did this
I expected the following
curl/libcurl version
curl 7.61.0 (x86_64-apple-darwin17.7.0) libcurl/7.61.0 OpenSSL/1.0.2o zlib/1.2.11 libidn2/2.0.5 libpsl/0.20.2 (+libidn2/2.0.5) nghttp2/1.32.0
Release-Date: 2018-07-11
Protocols: dict file ftp ftps gopher http https imap imaps pop3 pop3s rtsp smb smbs smtp smtps telnet tftp
Features: AsynchDNS IDN IPv6 Largefile NTLM NTLM_WB SSL libz TLS-SRP HTTP2 UnixSockets HTTPS-proxy PSL
operating system
macOS 10.13.6, curl installed from MacPorts, shell is fish
.
Activity
bagder commentedon Jul 12, 2018
It seems the mac terminal doesn't do "bold off" so it sticks with bold! This is independent of what shell that's used.
bagder commentedon Jul 12, 2018
An alternative approach that probably is more portable is to switch off all "styles":
header output: switch off all styles, not just unbold
grawity commentedon Jul 17, 2018
For the record, the more common unbold sequence is
\e[22m
. That's the one found in Xterm's documentation for example. I don't know where\e[21m
came from. Resetting all styles is even more reliable, I guess.eli-schwartz commentedon Jul 17, 2018
Using guake on Linux (vte) I was getting lots of double-underlined everything, which bled into the prompt after curl was finished: https://paste.xinu.at/MeNlxzN/
(So, not just macOS.)
But this commit fixes it.
lotheac commentedon Jul 18, 2018
@grawity xterm's documentation is actually at http://invisible-island.net/xterm/ctlseqs/ctlseqs.html (and it documents \e[21m too):
bagder commentedon Jul 20, 2018
A fix has already landed! We don't need more details on the error but we could use some confirmations of the fix...
eli-schwartz commentedon Jul 20, 2018
21 remaining items