Previous Topic: OverviewNext Topic: Restrictions


TTY Environment

Cursor Position

Cursor position on mapout is specified in the map-definition. A mapout operation writes a map to the TTY and positions the cursor as it would be positioned on a 3270-type terminal.

Attribute Byte

Each field on mapout is physically preceded by an invisible attribute byte. A display symbol for the attribute byte can be defined in a device independence table. Attribute byte symbols can be used to mark the location of the field and to inform the operator whether the field is unprotected, delimited, blank and protected, or in error. Default attribute byte symbols are presented in the following table:

Default Symbol

Meaning

+

Unprotected fields

!

Blank, protected field

*

Delimited field

?

A field in error

The attribute byte symbols that are defined in a device independence table provide the terminal operator with information about a given field. The symbols that are presented in this table can be overridden when a device independence table is generated.

Protected Fields

TTY terminals do not physically protect fields; the operator can key characters into any location on the map. Data keyed into a field that is defined as an UNPROTECTED field is transmitted and processed as usual. Data is ignored on mapin if it is typed into a field that is designated as PROTECTED or into a portion of the map on which no fields are defined.

Keys

Each terminal defines the keys or key sequences that cause the cursor to be moved on the screen. Terminal-defined key associations must be repeated in a device independence table that is generated for a given terminal. The key assignments presented in the following table are typical for some glass TTY terminals. Documentation for any given terminal should be consulted for the cursor-movement key assignments that are valid for that terminal.

Typical Cursor Movement Keys

A device independence table specifies the terminal-defined keys or key sequences that are used to move the cursor on the screen. The TTY key associations presented in this table are typical of some glass TTY terminals. Documentation for any given terminal should be consulted for the cursor-movement key assignments that are valid for that terminal.

Default TTY key

Function

<Ctrl>─H

Cursor-left

<Ctrl>─J

Cursor-down

<Ctrl>─K

Cursor-up

<Ctrl>─L

Cursor-right

<Ctrl>─<Home>

Home

TTY control keys can be defined to act like 3270-type attention keys. Attention key assignments that are typical for some glass TTY terminals are listed in the following table. Documentation for any given terminal should be consulted for the attention key assignments that are valid for that terminal.

3270 Key

Typical function of the 3270 key

Default TTY Key

Statement = hex-value-a

<Enter>

Send data to host

Return

CENTER=0D

<Clear>

Return to higher level

<Ctrl>─Z

CCLEAR=1A

<PF1>

Help

<Ctrl>─F

CPF1=06

<PF2>

 

<Ctrl>─I

CPF2=09

<PF3>

 

<Ctrl>─R

CPF3=12

<PF4>

 

<Ctrl>─S

CPF4=13

<PF5>

 

<Ctrl>─T

CPF5=14

<PF6>

 

<Ctrl>─U

CPF6=15

<PF7>

Display previous page

<Ctrl>─V

CPF7=16

<PF8>

Display next page

<Ctrl>─W

CPF8=17

<PF9>

Swap screens

<Ctrl>─X

CPF9=18

<PA1>

Refresh screen

<Ctrl>─Y

CPA1=19

The operator presses a TTY key or key sequence to invoke the 3270-type function associated with the key in the device independence table. The right-hand column of this table presents the RHDCTTBL statements that establish these particular key relationships.