Skip to main content

Module terminal

Module terminal 

Source
Expand description

rt’s 3270 terminal, with its AID bytes checked against the DFHAID copybook syntax serves.

Structs§

FieldView
A field on the screen: where its attribute byte is, the attribute, and where its data runs.
Inbound
What an AID key sent: the key, the cursor (absent in a short read), and each modified field’s data with the address it starts at.
Screen
Scripted
A terminal driven by a screen script: each SEND is applied to the screen and its rendering kept in shown; each RECEIVE plays the script up to its next AID key.

Enums§

Action
One thing the operator does at the keyboard.

Constants§

AID_CLEAR
AID_ENTER
AID_NONE
AID_PA1
AID_PA2
AID_PA3
DISPLAY
ERASE_ALL_UNPROTECTED
ERASE_WRITE
ERASE_WRITE_ALTERNATE
EUA
IC
INTENSIFIED
MDT
MF
NON_DISPLAY
NUMERIC
PROTECTED
PT
RA
SA
SBA
SF
SFE
WCC_ALARM
WCC_RESET_MDT
WCC_RESTORE
WRITE

Traits§

Terminal
The task’s terminal: SEND writes a 3270 data stream to it, and RECEIVE reads the stream the operator’s next AID key sends back.

Functions§

aid_of
The AID byte a key sends: ENTER, CLEAR, PA1-PA3, PF1-PF24.
attribute_byte
An attribute’s graphic form: its low six bits through the code table.
decode_address
encode_address
A buffer address as the data stream carries it: 12-bit coded below 4096, else 14-bit binary.
parse_inbound
parse_script
A scripted operator: type ROW COL text, eof ROW COL, cursor ROW COL, and an AID key (ENTER, CLEAR, PA1..PA3, PF1..PF24) that ends each turn. # starts a comment.