The text of a manual · part 20 of 35
5250 Terminal Emulation Programmer's Reference Guide: Section 8: Display Data Stream, pages 168 to 176
Pages 168 to 176 of 318, from 5250 Terminal Emulation Programmer's Reference Guide
The original document is the PDF (1.3 MB). This is its text as extracted, unedited; tables and drawings read best in the PDF, and each page heading opens it at that page.
For the Intermec 6400
Page 168
SECTION 8
"
Display Data Stream
Format of Returned Data. The format of the returned data is: Byte 3 Byte 1 and 2 Cursor address AID code
" NOTE:
Byte 4 {SBA
Byte 5 Field address
Byte 6 Field data}
The {} brackets around the last three fields indicate these fields may be repeated as a unit.
The cursor address gives the cursor location on the display. The SBA fields are formatted as Set Buffer Address orders. The field address comes from the address portion of the order and gives the address of the modified field (excluding the attribute). Results. The contents of each field that has an MDT bit on are returned to the host system in the order that the fields appear in the format table, if one of the following AID-generating keys is used: Roll up/Page down Roll down/Page up Enter/Rec Adv Unmasked function keys If no MDT bits are on, or if the operator does not use one of the acceptable AID-generating keys (Clear, Help, Print, or Record Backspace), only the cursor and AID code are returned to the host system. The host system can use field control words (FCWs) to rearrange the sequence in which the fields are returned. If data is returned, the following formatting is done. If the field is not a transparent data field, the following occurs:
8-10
5250 Terminal Emulation Programmer’s Reference Guide
Page 169
SECTION 8
"
Display Data Stream
Trailing nulls are stripped. If the field consists of all nulls, only the Set Buffer Address, row, and column are returned. " Leading and embedded nulls are converted to blanks. If the field is signed numeric, the last character is not sent. If that same field is negative, the zone position of the nextto-the-last character is changed to hex D. "
Hex 10 and hex 11 are control data. Therefore, avoid writing hex 10 and hex 11 to the display as data unless they are written in transparent data fields.
Read MDT Alternate Command Read MDT Alternate is similar to the Read MDT Fields command with these exceptions: "
"
Leading and embedded nulls within the fields remain nulls. Trailing nulls are stripped. For fields that are nulls but have their MDT bit on, the controller returns an SBA order followed by the field’s address.
Read Screen (Immediate) Command Function. The Read Screen command sends the contents of the display to the host in the same order information appears on the screen. For example, row 1 goes first. Restrictions. This command must be the last command in the SNA chain, and CD must be on. The wireless station rejects the command when it is in the prehelp error, posthelp error, system request, or SS message state. During transmission the keyboard is locked, but pending AID requests or Read commands are retained.
5250 Terminal Emulation Programmer’s Reference Guide
8-11
Page 170
SECTION 8
" NOTE:
"
Display Data Stream
If the display supports a separate message line, and the message line is selected, the command is rejected only for the system request and SS message states. The command is processed with the display in error state.
Format. The command takes the following form: ESC
Read Screen Command
Hex 04
Hex 62
Results. The contents of the entire display, including the attributes, is sent to the host system just as it appears in the regeneration buffer (no formatting or conversion is done). Cursor address and AID are not returned. This command does not clear either pending Read commands or AID requests. The keyboard is temporarily locked. The following are unaltered: " " " " " "
Annunciators Cursor location Modes Keying history Display contents Format table
Save Screen (Immediate) Command Function. The Save Screen command sends the state of the wireless station to the host. Information sent to the host includes:
8-12
5250 Terminal Emulation Programmer’s Reference Guide
Page 171
SECTION 8
" " " "
"
Display Data Stream
Format table Display buffer Keyboard state Cursor location
Code returned in response to the Help key " Any outstanding AID requests " Any outstanding Read commands Restrictions. This command must be the last command in the SNA chain and CD must be on. The command is rejected if the addressed LU is in either the system request or SS message state. "
Format. The command takes the following form: ESC
Save Screen Command
Hex 04
Hex 02
Format of Returned Data. The format of the returned data is: Byte 1
Byte 2
Byte 3
Escape
Restore Screen
<terminal state> <terminal state>
Byte 4
Byte 5 and all remaining bytes contain the save screen information. Results. All data required for restoring the display are sent to the host system. It must not be modified by the host system if the result of the Restore Screen command is to have integrity.
5250 Terminal Emulation Programmer’s Reference Guide
8-13
Page 172
SECTION 8
"
Display Data Stream
Output Commands Some of the output commands have associated data and control information (write characters and orders). The Write commands are executed immediately.
Clear Format Table Command Function. The Clear Format Table command clears the format table without erasing data in the display buffer. Restrictions. The wireless station rejects the command when in an error, system request, or SS message state. " NOTE:
If the display supports a separate message line, and the message line is selected, the command is rejected only for the system request and SS message states. The command is processed with the display in error state.
Format. The command takes the following form: ESC
Clear Format Table Command
Hex 04
Hex 50
Results. The following list describes what happens when this command is executed. "
"
8-14
The keyboard is locked. -- The keyboard clicker is turned off. -- The Input Inhibited annunciator is turned on. -- The insert mode is cleared (as is the annunciator). The format table is cleared. The format table header formats like this:
5250 Terminal Emulation Programmer’s Reference Guide
Page 173
SECTION 8
"
" " " "
" NOTE:
"
Display Data Stream
Item
Value
Format ID
Hex 00
First field transmitted to host system
0 (Resequencing is disabled)
Error line
Bottom line of display
The system insert cursor address is set to row 1, column 1. This clears a previous Insert Cursor order. Any pending AID request is cleared. All keying history is cleared. The master MDT bit is cleared. A blinking cursor caused by waiting for a required Field Exit key is reset.
Operator-selected reverse image and the Message Waiting annunciator are not affected by this command.
Clear Unit Command Function. This command clears the display and format table. Restrictions. The wireless station rejects the command when it is in the SS message state. Format. The command takes the following form: ESC
Clear Unit Command
Hex 04
Hex 40
Results. When the wireless station receives the Clear Unit command, the following occurs:
5250 Terminal Emulation Programmer’s Reference Guide
8-15
Page 174
SECTION 8
"
Display Data Stream
"
"
" " "
"
"
"
" NOTE:
The keyboard locks. -- The Input Inhibited annunciator is turned on. -- The error state (or system request state) is cleared. -- The shift, alternate, function, and insert modes are cleared. The format table is cleared. Because this is not format level 0, a default header is assumed. The MDT bit is cleared. All function keys are set up to return data. The display is cleared by writing nulls to the display buffer. A normal attribute is written byte to row 1, column 1 of the display. The cursor is placed at row 1, column 2; this makes the insert cursor address. Any AID requests and pending Read Input Fields or Read MDT Fields commands are cleared.
Operated-selected reverse image and the Message Waiting annunciator are not affected by this command.
Restore Screen Command Function. The Restore Screen command restores all data stored by the last Save Screen command. Restrictions. The wireless station rejects this command when it is in a system request or SS message state. Format. The command takes the following form:
ESC Hex 04
8-16
Restore Screen Data From Last Save Command Command Hex 12 <saved data>
5250 Terminal Emulation Programmer’s Reference Guide
Page 175
SECTION 8
"
Display Data Stream
Results. The following describes what happens when this command is executed. These are restored: Contents of the display. " Contents of the format table. " State of the keyboard, including the insert mode with the annunciators. " Location of the cursor and the way it was displayed. " System insert cursor address. " State of the master MDT bit. " Error code and any explanatory information provided by the host system in the Write Error Code command, if the wireless station was in an error state. The error code and any information are returned via the operator’s use of the Help key. " Requirements to send LU-LU Lustat when error line is available. " Any Read command that was pending at the time. " Any AID requests that were outstanding at the time of the Save Screen command. These conditions from the previous save are not restored: "
Condition of the Shift key and the associated annunciator. " Status of the Message Waiting annunciator. " The current status of the hex mode is reset. The following conditions cause parameter errors: "
" "
" NOTE:
Invalid data is detected. The required amount of data is not received.
A Clear Unit command is executed if an error is detected.
5250 Terminal Emulation Programmer’s Reference Guide
8-17
Page 176
SECTION 8
"
Display Data Stream
Roll Command Function. The Roll command causes the image presented in the wireless station display to roll up or down across the larger image area available on the 5291 Display Station. Restrictions. The command is rejected if the display is in the prehelp error, posthelp error, system request, or SS message state. " NOTE:
If the display supports a separate message line, and the message line is selected, the command is rejected only for system request and SS message states. The command is processed with the display in error state.
Format. The command consists of 5 bytes in the following form: Row Number ESC
Command
Direction
Top
Bottom
Hex 04
Hex 23
Hex 08
Hex 01
Hex 23
Bits in the direction byte define the direction and number of lines to roll. See the following chart for the bit meanings. Bit 7 is the most significant bit. Bit
Description
7
0 = Roll up 1 = Roll down
6 through 0
Number of lines to roll
The top row number tells the first line for inclusion in the roll. Bottom row number tells the last row number to include. Top and bottom row numbers together define the number of lines presented on the display for the roll.
8-18
5250 Terminal Emulation Programmer’s Reference Guide