dankamongmen / panelreels

high-level objects built atop ncurses
https://nick-black.com/dankwiki/index.php/Outcurses
Apache License 2.0
8 stars 1 forks source link

COLOR_PAIRS can be less than COLORS on direct color #41

Open dankamongmen opened 4 years ago

dankamongmen commented 4 years ago
[schwarzgerat](4) $ tput pairs
65536
[schwarzgerat](0) $ tput colors
16777216
[schwarzgerat](0) $ set | grep TERM
COLORTERM=truecolor
TERM=xterm-direct
    LESS_TERMCAP_md='' LESS_TERMCAP_me='' LESS_TERMCAP_se='' LESS_TERMCAP_so='' LESS_TERMCAP_ue='' LESS_TERMCAP_us='' command man "$@"
[schwarzgerat](0) $ ./outcurses-demo 
Error: fewer COLOR_PAIRS than COLORS
Error initializing outcurses
[schwarzgerat](1) $ 
dankamongmen commented 4 years ago

We allow this now, but we're not dealing with it well AFAIK. Take a look at #56 .