tty-supports-attributes? ( -- ? )
Formatted TTY Output

Prev:tty-supports-rgbcolor? ( -- ? )


Vocabulary
terminfo

Inputs
None

Outputs
?a boolean


Word description
Outputs t if the current terminal (based on $TERM) supports text attributes such as bold or underline. If you need to know specifically what attributes are supported, you will need to inspect the terminfo; that said, most modern terminals support at least bold, dim, inverse, and underline, and support for italics and strikethrough is increasingly common.

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

Definition