Skip to content

Commit

Permalink
query_rgb: tigetflag() returns 1 on success
Browse files Browse the repository at this point in the history
  • Loading branch information
dankamongmen committed Mar 8, 2024
1 parent 9b52619 commit 87782f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/termdesc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 87782f3

Please sign in to comment.