mirror of
https://github.com/dankamongmen/notcurses
synced 2025-03-09 09:09:03 -04:00
query_rgb: tigetflag() returns 1 on success
This commit is contained in:
parent
9b52619936
commit
87782f340a
@ -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…
x
Reference in New Issue
Block a user