mirror of
https://github.com/curl/curl.git
synced 2026-08-24 20:03:52 +03:00
curl: added --styled-output
It is enabled by default, so --no-styled-output will switch off the detection/use of bold headers. Closes #2538
This commit is contained in:
parent
c1c27625c7
commit
f3d836b736
7 changed files with 19 additions and 5 deletions
|
|
@ -163,7 +163,7 @@ size_t tool_header_cb(char *ptr, size_t size, size_t nmemb, void *userdata)
|
|||
if(!outs->stream && !tool_create_output_file(outs, FALSE))
|
||||
return failure;
|
||||
|
||||
if(hdrcbdata->global->isatty)
|
||||
if(hdrcbdata->global->isatty && hdrcbdata->global->styled_output)
|
||||
value = memchr(ptr, ':', cb);
|
||||
if(value) {
|
||||
size_t namelen = value - ptr;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue