|
|
Log in / Subscribe / Register

Refreshing

Refreshing

Posted Jun 10, 2021 2:00 UTC (Thu) by NYKevin (subscriber, #129325)
In reply to: Refreshing by kschendel
Parent article: Rewriting the GNU Coreutils in Rust

In theory, most tools should be smart enough to completely disable color when TERM=dumb. Unfortunately, it seems that GNU ls (with --color=auto) just checks isatty and assumes that all reasonable ttys can support at least 16 colors (which is probably a fair assumption these days, but IMHO "dumb" means "no really, I can't do anything other than clearing the screen, don't try to get clever with me" rather than "just assume I'm a vt100 or whatever"). I have not tried exa.


to post comments

Refreshing

Posted Jun 24, 2021 12:53 UTC (Thu) by immibis (subscriber, #105511) [Link] (2 responses)

> but IMHO "dumb" means "no really, I can't do anything other than clearing the screen, don't try to get clever with me" rather than "just assume I'm a vt100 or whatever"). I have not tried exa.

Surely "dumb" means "I can't do anything other than printing characters - not even clearing the screen"?

Refreshing

Posted Jun 24, 2021 15:50 UTC (Thu) by james (guest, #1325) [Link] (1 responses)

AIX login assumes you can clear any screen with enough linefeeds.

Refreshing

Posted Jun 28, 2021 13:56 UTC (Mon) by immibis (subscriber, #105511) [Link]

Sounds like a waste of paper :)


Copyright © 2026, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds