Display Data StreamChapter —6
278 TE 2000
5250 Terminal Emulation Programmer’s Guide
Write to Display (WTD)
Function
The WTD command does the f ollowing:
S Modifies the format table and display buffer contents.
S Governs MDT flags and Message Waiting annunciator.
S Nulls nonbypass fields.
S Controls keyboard lock and cursor blink.
Restrictions
This command is rejected if the display is in a prehelp error, posthelp
error, system request, or SS message state.
If the display supports a separate message line, and the message line is
selected, then only system request or SS message state result in a conten-
tion state error. If the error line is in use, however, and the WTD attempts
to redefine the error line (using Start of Header byte 4), a negative
response is generated.
Format
The WTD command takes either of the following forms.
ESC WTD Command CC Byte 1 CC Byte 2 Orders or Data
Hex 04 Hex 11 Hex 00 Hex 13 <orders >
Hex 04 Hex 11 Hex 00 Hex 13 <data>
Note:CCByte1andCCByte2arethewritecontrolcharacters.
CC Byte 1 may do the following:
Clear the master MDT f lag and reset the MDT flags.
Null all appropriate nonbypass fields.
CC Byte 2 sets the following:
Cursor blink
Keyboard lock
Alarm
Message Waiting annunciator
Orders are described in detail starting on page 280. Any character that is
not an order and not associated with an order is considered data, and is
written on the screen at the current display address. The address is then
incremented by 1 for each character written. These characters should be
hex 00, hex 1C, or above hex 1F, so there is no conflict with the codes
reserved for orders.