module Reline::Terminfo
def self.tigetflag(capname)
def self.tigetflag(capname) raise TerminfoError, "capname is not String: #{capname.inspect}" unless capname.is_a?(String) flag = @tigetflag.(capname).to_i case flag when -1 raise TerminfoError, "not boolean capability: #{capname}" when 0 raise TerminfoError, "can't find capability: #{capname}" end flag end