Changes terminal type during program execution. On UNIX, changes the value of the TERM environment variable.
A terminal type string. The termid can also be an expression. The AVM returns an error message if termid is not defined in the PROTERMCAP file. However, termid can be the word TERMINAL. The line TERMINAL=TERMINAL reinitializes the terminal.
This procedure changes the terminal screen width from 80 columns to 132 columns, then back again:
r-seterm.p
The following sequence of statements does not work as intended, because subp.p is not recompiled before its second execution:
r-setrm1.p