Defining Your Own Terminal Types

In addition to changing the selection of terminal types for your system, the DEFINE-CURSOR utility can also be used to create your own customized terminal type definitions. This section describes some of the fields in the Terminal Table that are required for each definition.

Terminal Type

The terminal type is a single uppercase letter which identifies the terminal to the system. Usually it is set up at logon with the TERM command. The terminal type field in the terminal table corresponds to the type as set with the TERM command. Up to 26 terminal types are available.

Size

The size field contains the screen size in columns and rows. Enter the size as two numbers separated by a comma (e.g., 80,24). The size is used to limit the range of cursor addresses which can be produced by the System Cursor routine. If a value exceeds the size, the maximum size is substituted.

Cursor Addressing Type

The cursor addressing type is usually one of the following letters:

A

ADDS

D

Decimal

H

Hazeltine

L

Lear-Seigler

T

TEC

All types except D produce binary column and row addresses (single byte for each). D type addressing produces one to three digits for column and row addresses. If you use D type addressing, the code can be followed by two digits (22, 23, 32, 33) to force padding to the desired number of digits. For example, D32 will produce decimal addressing with 3 digits used for the column and 2 digits for the row (leading zeros added to force the length). If you use D alone, floating decimal numbers from 1 to 3 digits will be used.

All cursor addressing codes can be followed by a plus sign (+) which adds 1 to the column and row addresses before generating the address codes. This allows for terminals which define the upper-left corner of the screen as 1,1 instead of 0,0. Thus, decimal addressing with a three-digit row and column address numbered from 1,1 would be D33+.

See Also

Configuring and Using Terminals

Setting Terminal Characteristics

The CURSOR File

Selecting and Defining Terminal Types

Cursor Addressing Codes

Cursor Code Strings

Customizing the Cursor Definitions

Troubleshooting Problems with Terminals