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