The TERMINAL command specifies attributes that control the format of output to the terminal. If no attributes are specified, the current terminal specifications are displayed. The initial values of PAGE and LINE options are taken from the file attributes of the remote file when it is opened.
Syntax
── TERMINAL ─┬──────────────────────────────────┬──────────────────────┤ │ ┌◄──────────┬──────┬───────────┐ │ │ │ └◄─ , ─┘ │ │ └─┴─┬─ LINE ─┬─────┬─<integer>─┬─┴─┘ │ └─ = ─┘ │ ├─ PAGE ─┬─────┬─<integer>─┤ │ └─ = ─┘ │ ├─ WAIT ───────────────────┤ └─ CONTINUOUS ─────────────┘
Explanation
LINE <integer> LINE = <integer>
Specify the maximum width of an output line, expressed in characters. The integer value must be between 72 and 132.
PAGE <integer> PAGE = <integer>
Specify the number of lines on each page. This option is relevant only if WAIT is specified.
WAIT
Groups the output into pages in the form described by the LINE and PAGE options. After each page except the last page, the program stops and waits for input from the terminal. If the input is blank, the next page is printed; otherwise, the command is aborted, as if a break on output had occurred.
CONTINUOUS
Disables the WAIT option.
Examples
The following command sets the maximum width of an output line on the terminal to 80 characters:
TERM LINE 80
The following command causes each page of output to contain 23 lines. The program waits for a blank response at the end of each page. The count starts at the beginning of each command.
TERM PAGE 23 WAIT