$zcurses_colors  –  Colors supported by zsh/curses

$zcurses_colors contains the colors supported by the zsh/curses module.

Examples

Print number of colors supported by the terminal
1
2
zmodload zsh/curses
typeset zcurses_colors
Output:
1
zcurses_colors=( black red green yellow blue magenta cyan white default )
BashSupport Pro is a Zsh IDE with support for $zcurses_colorstry it now!
© 2020–2024 Joachim Ansorg
Imprint
Privacy Policy
Legal