Return the value of the Boolean capability. capname The terminfo capability name. The value -1 is returned if capname is not a Boolean capability, or 0 if it is canceled or absent from the terminal description.
curses/tigetflag
tigetflag