tty-supports-dim? ( -- ? )
Terminfo Databases

Prev:tty-supports-attributes? ( -- ? )
Next:tty-supports-ansicolor? ( -- ? )


Vocabulary
terminfo

Inputs
None

Outputs
?a boolean


Word description
Outputs t if the terminal identified by $TERM supports dim (aka "faint" or "half-bright") text. The exact behaviour varies by terminal, unfortunately; common approaches are to have a separate, user-configured palette for dim colours (e.g. Konsole), or to generate dim colours on the fly by multiplying the current colour by some scaling factor, typically in the 0.4-0.6 range.

See also
tty-supports-attributes?, tty-supports-ansicolor?, tty-supports-256color?, tty-supports-rgbcolor?, Terminfo Databases

Definition