TERMINFO() |
![]() ![]() ![]() |
The TERMINFO() function returns information from the terminfo database.
Format
TERMINFO() TERMINFO(cap.name)
where
The TERMINFO() function enables programs to examine the terminfo database to establish capabilities of the currently selected terminal type.
In the first form, TERMINFO() returns a dynamic array containing a wide range of capability information about the terminal. The structure of this dynamic array is defined in the TERMINFO.H include record in the SYSCOM file. Additional entries may be added in future releases but existing entries will not be moved.
The second form of the TERMINFO() function returns the value of the named capability. The cap.name argument should evaluate to a capability name as used in terminfo source files. This name is case sensitive. Unrecognised capabilities and those for which the terminfo database has no entry will be returned as null strings.
Both modes of this function return a null string on the PDA version of QM. |