Availability:built-in
tty_get_capability(+Name,
+Type, -Result)Get the capability named Name from the termcap library. See
termcap(5) for the capability names. Type specifies the type
of the expected result, and is one of string
, number
or
bool
. String results are returned as an atom, number
results as an integer, and bool results as the atom on
or off
.
If an option cannot be found, this predicate fails silently. The results
are only computed once. Successive queries on the same capability are
fast.