curl / Mailing Lists / curl-users / Single Mail
Buy commercial curl support. We help you work out your issues, debug your libcurl applications, use the API, port to new platforms, add new features and more. With a team lead by the curl founder Daniel himself.

Re: Any way to force --styled-output?

From: Daniel Stenberg via curl-users <curl-users_at_lists.haxx.se>
Date: Mon, 1 Jun 2026 10:22:51 +0200 (CEST)

On Fri, 29 May 2026, 5HT2 via curl-users wrote:

> See subjectline, I don't see anything documented in curl(1) and trying the
> somewhat-standardized CLICOLOR / CLICOLOR_FORCE / COLORS / COLORTERM /
> similar do not appear to affect the output when curl is piped.

curl currently doesn't have such a way. We should add one. Currently it
requires the output to be a tty. See:

https://github.com/curl/curl/blob/872c313d7647ac437c83128e6bea7a8ed16cd2ef/src/tool_cb_hdr.c#L523-L527

-- 
  / daniel.haxx.se || https://rock-solid.curl.dev
-- 
Unsubscribe: https://lists.haxx.se/mailman/listinfo/curl-users
Etiquette:   https://curl.se/mail/etiquette.html
Received on 2026-06-01