SET-TERM Command

The SET-TERM command sets the system-wide default characteristics for terminals and printers.

Format

SET-TERM [width, depth, skip, lf-delay, ff-delay, backspace, ptr-width, ptr-length, type] [(n [–m] )]

Parameter(s)

width

Number of characters per line on a terminal. It must be a number from 9 through 155. The default value is 79.

depth

Number of lines displayed on the terminal screen. The default value is 24.

skip

Number of lines skipped at the bottom of the terminal screen. skip is subtracted from depth. The default value is 0.

lf-delay

Number of null characters output after each carriage return. These delay characters provide a pause for devices that cannot print characters as fast as the CPU outputs them. The default value is 1. The maximum value is 127.

ff-delay

Number of null characters output after a form feed character for either the terminal or the printer. The default value is 5. The maximum value is 127.

If ff-delay is 0, no form feed character is sent to either the terminal or the printer at the beginning of a page. If ff-delay is 1, a form feed character is sent to the printer but not to the terminal. If ff-delay is 2 or greater, the form feed character is sent to both the printer and the terminal.

backspace

The ASCII number that corresponds to the backspace character. This parameter is for terminals that cannot physically backspace or that use a backspace character other than CTRL-H. For example, assign a value of 21 for Pick Systems M terminal lines, and a value of 8 for the TEC 2402. The default value is 8.

ptr-width

Number of characters per printer line. The default value is 132. The maximum value is 350.

ptr-length

Number of lines on a printer page. The default value is 60. The maximum value is 32,767.

type

Terminal type code. This parameter changes the form feed character to match the requirements of the specific terminal and sets the cursor address for mvBASIC cursor functions. The available codes are as follows:

 

A

Pick Systems 580

 

B

Beehive

 

D

DATAMEDIA

 

H

Honeywell

 

I

M1500 Console

 

L

LSI ADM-3A

 

M

AMPEX Dialogue

 

P

HP 2621A

 

R

Pick Systems M and Regent

 

S

ANSI Standard

 

T

TEC 2402

 

V

Viewpoint

 

X

No cursor address required

 

If type is the only parameter you are setting, you can enter the value without any preceding commas.

n

Process number. If you do not specify a process, default characteristics are set for all processes.

n-m

Specifies a range of process numbers.

Follow these guidelines:

Description

The SET-TERM differs from the TERM command, which sets characteristics that remain in effect only for the current logon session.

Displaying Current Default Terminal and Printer Settings

This example displays the current default settings for the terminal and printer associated with process 6:

>SET-TERM (6

           TERMINAL PRINTER

PAGE WIDTH:     79      132

PAGE DEPTH:     24       60

LINE SKIP :      0

LF DELAY  :      1

FF DELAY  :      5

BACKSPACE :      8

TERM TYPE :      V

>

Setting Default Terminal Type

This example shows how to set the default terminal type for process 6 to Viewpoint:

>SET-TERM V (6)

Setting Default Printer Characteristics

This example shows how to set the number of delay characters after the beginning of each page to one, and the number of lines per printer page to 55, for process 6:

>SET-TERM ,,,,1,,55 (6)