module

Term::Terminfo::Database

Terminfo database parsing and capability lookup

Constants

TERMINFO_PATHS = [ENV["TERMINFO"]?, "#{ENV["HOME"]}/.terminfo", "/etc/terminfo", "/lib/terminfo", "/usr/share/terminfo", "/usr/share/misc/terminfo", "/usr/local/share/terminfo"].compact

Standard terminfo database paths

Instance methods

columns(term : String | Nil = nil) : Int32
Source
get_capability(name : String, term : String | Nil = nil) : Bool | Int32 | String | Nil

Get capability value

Source
get_entry(term : String | Nil = nil) : Entry | Nil

Get entry for terminal type

Source
get_numeric(name : String, term : String | Nil = nil) : Int32 | Nil

Get numeric capability

Source
get_string(name : String, term : String | Nil = nil) : String | Nil

Get string capability

Source
has_capability?(name : String, term : String | Nil = nil) : Bool

Check if terminal has boolean capability

Source
lines(term : String | Nil = nil) : Int32
Source
max_colors(term : String | Nil = nil) : Int32

Common capability shortcuts

Source

Nested types