$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 是一款支持 ZCURSES_COLORS** 的 **Zsh 集成开发环境 - 立即试用
© 2020–2024 Joachim Ansorg
声明
隐私政策
许可条款