pterm - print terminal characteristics


pterm [-d] terminalname [ textfile ]


Pterm displays the escape sequences for the terminal terminalname to textfile or the standard output file if textfile is omitted. The terminal definition for terminalname must previously been defined by termset(C-1) or cterm(C-1).

If no option is given, the escape sequences for a terminal definition is printed in a long report format. If the -d flag is used, the escape sequences for terminalname are printed in a condensed format suitable for input to cterm(C-1). This flag is used in porting terminal definitions to other systems.

There are three parts to a terminal definition. The first part defines escape sequences sent to the computer by the terminal when a particular key is pressed. The second part defines escape sequences to be sent to the terminal by the computer when a particular function is desired. The third part describes various terminal characteristics. The escape sequences for each terminal definition is stored in a file located in the directory \cbase\lib\cbase\escape. The file has the same name as the terminalname argument. This file is used by escape(C-3) and getkey(C-1) to provide a method of using CRT terminals in a terminal independent manner. A more complete description can be found in C/Base Utilities Manual Chapter 2, Terminal Independent I/O.




escape(C-1), cterm(C-1).

getkey(C-3), termparm(C-3).

C/Base Utilities Manual Chapter 6, Transferring C/Base Applications.

C/Base Utilities Manual Chapter 2, Terminal Independent I/O.