query_rgb: tigetflag() returns 1 on success

pull/2664/merge
nick black 2 months ago
parent 9b52619936
commit 87782f340a
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC

@ -141,7 +141,7 @@ setup_fbcon_bitmaps(tinfo* ti, int fd){
static bool
query_rgb(void){
bool rgb = (tigetflag("RGB") > 1 || tigetflag("Tc") > 1);
bool rgb = (tigetflag("RGB") > 0 || tigetflag("Tc") > 0);
if(!rgb){
// RGB terminfo capability being a new thing (as of ncurses 6.1), it's not
// commonly found in terminal entries today. COLORTERM, however, is a

Loading…
Cancel
Save