class Terminfo::Database
- Terminfo::Database
- Reference
- Object
Defined in:
database.crConstructors
Class Method Summary
Instance Method Summary
- #booleans : Hash(Terminfo::Keys::Booleans, Bool)
-
#get!(key : Keys::Booleans)
Gets the
Bool
value for the key key, raises an InvalidKeyError if not set. -
#get!(key : Keys::Numbers)
Gets the
Int16
value for the key key, raises an InvalidKeyError if not set. -
#get!(key : Keys::Strings)
Gets the
Slice(UInt8)
value for the key key, raises an InvalidKeyError if not set. -
#get?(key : Keys::Booleans)
Gets the
Bool
value for the key key, ornil
if not set. -
#get?(key : Keys::Numbers)
Gets the
Int16
value for the key key, ornil
if not set. -
#get?(key : Keys::Strings)
Gets the
Slice(UInt8)
value for the key key, ornil
if not set. - #names : Array(String)
- #numbers : Hash(Terminfo::Keys::Numbers, Int16)
-
#set(key : Keys::Booleans, value : Bool)
Sets key key to value value, raises InvalidKeyError if key is invalid.
-
#set(key : Keys::Numbers, value : Int16)
Sets key key to value value, raises InvalidKeyError if key is invalid.
-
#set(key : Keys::Strings, value : Slice(UInt8))
Sets key key to value value, raises InvalidKeyError if key is invalid.
- #strings : Hash(Terminfo::Keys::Strings, Slice(UInt8))
Constructor Detail
Class Method Detail
Instance Method Detail
Gets the Bool
value for the key key, raises an InvalidKeyError if not set.
Gets the Int16
value for the key key, raises an InvalidKeyError if not set.
Gets the Slice(UInt8)
value for the key key, raises an InvalidKeyError if not set.
Sets key key to value value, raises InvalidKeyError if key is invalid.
Sets key key to value value, raises InvalidKeyError if key is invalid.
Sets key key to value value, raises InvalidKeyError if key is invalid.