Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Re: printf in glorious colour

8 views
Skip to first unread message

Ivan Shmakov

unread,
Mar 2, 2013, 12:40:48 PM3/2/13
to
>>>>> Nobody <nob...@nowhere.com> writes:
>>>>> On Fri, 01 Mar 2013 02:04:24 -0800, Malcolm McLean wrote:

[Cross-posting to news:comp.unix.misc, just in case.]

>> How widely supported are the escape ... m colour codes for text?

> There are enough exceptions that hard-coding those sequences can't be
> explained as anything other than the programmer not knowing about
> termcap or terminfo.

Seconded. However, it should be noted that, say, both ls(1) of
GNU Coreutils and vlc(1) of the VideoLAN project have these
hardcoded. (And while it may be reasonable for the first, I
doubt that it is for the second.)

> Any Unix system will have either or both of those libraries.

As well as a variant of the Curses library.

> The Windows console doesn't support escape sequences.

Still, there're PDCurses.

[...]

--
FSF associate member #7257
0 new messages