$ZCURSES_COLORS  –  Maximum number of colors supported by the terminal

$ZCURSES_COLORS contains the number of colors supported by the terminal. The value becomes available when zcurses init is run.

Examples

Print number of colors supported by the terminal
1
2
3
zmodload zsh/curses
zcurses init
typeset ZCURSES_COLORS
Output:
1
ZCURSES_COLORS=256
BashSupport Pro is a Zsh IDE with support for $ZCURSES_COLORStry it now!
© 2020–2024 Joachim Ansorg
Imprint
Privacy Policy
Legal