mirror of
https://github.com/curl/curl.git
synced 2026-08-06 09:26:15 +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
|
|
@ -5,7 +5,7 @@
|
|||
* | (__| |_| | _ <| |___
|
||||
* \___|\___/|_| \_\_____|
|
||||
*
|
||||
* Copyright (C) 1998 - 2017, Daniel Stenberg, <daniel@haxx.se>, et al.
|
||||
* Copyright (C) 1998 - 2018, Daniel Stenberg, <daniel@haxx.se>, et al.
|
||||
*
|
||||
* This software is licensed as described in the file COPYING, which
|
||||
* you should have received as part of this distribution. The terms
|
||||
|
|
@ -147,6 +147,7 @@ static CURLcode main_init(struct GlobalConfig *config)
|
|||
/* Initialise the global config */
|
||||
config->showerror = -1; /* Will show errors */
|
||||
config->errors = stderr; /* Default errors to stderr */
|
||||
config->styled_output = TRUE; /* enable detection */
|
||||
|
||||
/* Allocate the initial operate config */
|
||||
config->first = config->last = malloc(sizeof(struct OperationConfig));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue