dash.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* ANSI escape codes in printf don't work
@ 2022-02-07 15:36 Subhaditya Nath
  2022-02-07 15:55 ` Harald van Dijk
  0 siblings, 1 reply; 2+ messages in thread
From: Subhaditya Nath @ 2022-02-07 15:36 UTC (permalink / raw)
  To: dash

Run this -

    /usr/bin/printf '\x1b[31m%s\x1b[m\n' FAIL

It should print FAIL in red foreground color.
It does, on other shells.
In dash, it doesn't.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-02-07 16:05 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-02-07 15:36 ANSI escape codes in printf don't work Subhaditya Nath
2022-02-07 15:55 ` Harald van Dijk

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).