Previous section To contents Next section

9.6 Terminal management - Stdio.Terminfo

FUNCTION
Stdio.Terminfo.getFallbackTerm - get fallback terminal

SYNTAX
object(Stdio.Terminfo.Terminfo)|object(Stdio.Terminfo.Termcap) getFallbackTerm(string term);

DESCRIPTION
Returns an object describing the fallback terminal for the terminal term. This is usually equvivalent to Stdio.Terminfo.getTerm("dumb").

SEE ALSO
Stdio.Terminfo.getTerm

FUNCTION
Stdio.Terminfo.getTerm - get terminal description

SYNTAX
object(Stdio.Terminfo.Terminfo)|object(Stdio.Terminfo.Termcap) getTerm();
or
object(Stdio.Terminfo.Terminfo)|object(Stdio.Terminfo.Termcap) getTerm(string term);

DESCRIPTION
Returns an object describing the terminal term. If term is not specified, it will default to getenv("TERM") or if that fails to "dumb".

Lookup of terminal information will first be done in the systems terminfo database, and if that fails in the termcap database. If neither database exists, a hardcoded entry for "dumb" will be used.

SEE ALSO
Stdio.Terminfo.getTerminfo, Stdio.Terminfo.getTermcap and Stdio.getFallbackTerm

FUNCTION
Stdio.Terminfo.getTermcap - get termcap description

SYNTAX
object(Stdio.Terminfo.Termcap) getTermcap(string term);

DESCRIPTION
Return the terminal description of term from the systems termcap database. Returns 0 if not found.

SEE ALSO
Stdio.Terminfo.getTerm and Stdio.Terminfo.getTerminfo

FUNCTION
Stdio.Terminfo.getTerminfo - get terminfo description

SYNTAX
object(Stdio.Terminfo.Terminfo) getTerminfo(string term);

DESCRIPTION
Return the terminal description of term from the systems terminfo database. Returns 0 if not found.

SEE ALSO
Stdio.Terminfo.getTerm and Stdio.Terminfo.getTermcap

9.6.1 Stdio.Terminfo.Termcap

9.6.2 Stdio.Terminfo.Terminfo


Previous section To contents Next section