The text of a manual · part 25 of 33
VT220/ANSI Terminal Emulation Programmer's Reference Guide: Section 8: Programming, pages 197 to 206
Pages 197 to 206 of 276, from VT220/ANSI Terminal Emulation Programmer's Reference Guide
The original document is the PDF (1.4 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 197
SECTION 8
"
Programming
Local Edit Mode If your application software program supports local editing, the wireless station can be programmed to operate in local edit mode. Local edit mode is a feature of the VT330/VT340 terminal. Use the mode to send characters to page memory instead of to the host. The wireless station sends a block of edited text to the host after you press a terminating key. Wireless station terminating keys in local edit mode are: [ENTER] [F1] through [F20]
Edit Mode and Interactive Mode The edit mode control function (DECEDM) selects edit mode or interactive mode. The function determines when the wireless station sends data to the host. Table 8-41 describes the modes. Table 8-41 Local Edit Modes Mode
Sequence* Wireless Station Action
Set
CSI ? 1 0 h
Selects edit mode. (Turns on the annunciator in the display.) The wireless station stores all typed characters in page memory for local editing. After the data is edited, it can be sent in a block to the host.
Reset
CSI ? 1 0 l
Selects interactive mode. (Turns off the annunciator in the display.) The wireless station immediately sends typed characters to the host.
* The last character in the reset mode sequence is lowercase L (6C hexadecimal).
VT220/ANSI Terminal Emulation Programmer’s Reference Guide
8-61
Page 198
SECTION 8
"
Programming
Local Editing Setup To use the wireless station in local edit mode, the local editing features must be set up for the application software as described in Table 8-42. Table 8-42 Local Editing Setup Feature
Setting
Description
Edit mode
Edit
Edited text is stored in memory until you press a terminating key, which sends the text to the host. Not supported.
Transmit execution mode
Immediate
Local editing application keys
Suffix transmit
The wireless station sends data to the host immediately after you press a terminating key. When you press [F1] through [F20], the wireless station sends that function to the host after sending a block of data.
Line transmit mode
Disabled
Transfer termination mode
Enabled
Edit key execution mode
VT131 transfer mode Space compression
End of line characters
End of block characters
8-62
The wireless station sends a full page of data to the host after you press a terminating key. After you press a terminating key, the wireless station sends the scrolling region, which is the area inside the scrolling margins. Not supported.
Disabled
The wireless station sends a space character for each unused character position. On the wireless station, no characters indicate the end of a line in a data block. On the wireless station, no characters indicate the end of a data block.
VT220/ANSI Terminal Emulation Programmer’s Reference Guide
Page 199
SECTION 8
"
Programming
Selecting Characters to Send Three control functions allow you to define which characters the wireless station can send to the host. Table 8-43 shows how the control functions select which characters the wireless station sends. Table 8-43 Selecting Character Fields for Transmission Fields Selected All fields
Guarded Area Selected Area Multiple Area Transfer Mode Transfer Mode Transfer Mode Set Set Unavailable
Unprotected fields only
Reset
Set
Unavailable
Selected fields only
Set
Reset
Set
Selected field with cursor only
Set
Reset
Reset
Unprotected and selected fields
Reset
Reset
Set
Selected field with cursor only
Reset
Reset
Reset
Guarded Area Transfer Mode (GATM) The guarded area transfer mode control function selects whether the wireless station sends all characters or only unprotected characters to the host. When GATM is unprotected (reset), the wireless station sends a record separator (RS, 1E hexadecimal) to the host in place of a protected field. Table 8-44 lists guarded area transfer modes.
VT220/ANSI Terminal Emulation Programmer’s Reference Guide
8-63
Page 200
SECTION 8
"
Programming
Table 8-44 Guarded Area Transfer Modes Mode
Sequence* Wireless Station Action
Set (All)
CSI 1 h
Selects all characters. During block transmission, the wireless station can send all protected and unprotected characters to the host.
Reset (Unprotected)
CSI 1 l
Selects unprotected characters. During a block transmission, the wireless station can send only unprotected characters to the host.
* The last character of the reset mode sequence is lowercase L (6C hexadecimal).
Selected Area Transfer Mode (SATM) The selected area transfer mode control function determines whether the wireless station can send all characters or only selected characters to the host. Selected characters are characters defined as eligible to send to the host. Table 8-45 lists selected area transfer modes. Table 8-45 Selected Area Transfer Modes Mode
Sequence* Wireless Station Action
Set (All)
CSI 1 7 h
Selects all characters. The wireless station can send selected and unselected characters on the current page to the host.
Reset (Unprotected)
CSI 1 7 l
Selects only selected characters. The wireless station can only send selected characters on the current page to the host.
* The last character of the reset mode sequence is lowercase L (6C hexadecimal).
8-64
VT220/ANSI Terminal Emulation Programmer’s Reference Guide
Page 201
SECTION 8
"
Programming
Multiple Area Transfer Mode (MATM) The multiple area transfer mode control function determines what selected character areas the wireless station can send to the host. MATM work only when SATM is reset. Table 8-46 describes multiple area transfer modes. Table 8-46 Multiple Area Transfer Modes Mode
Sequence* Wireless Station Action
Set (All)
CSI 1 5 h
The wireless station can send all selected areas on the page to the host.
Reset (Unprotected)
CSI 1 5 l
Selects one area. The wireless station can send only the selected area with the cursor. If the cursor is not in a selected field, the cursor moves to the next selected field.
* The last character of the reset mode sequence is lowercase L (6C hexadecimal).
Defining Selected Areas Start selected area (SSA) and end selected area (ESA) control functions select which characters on the current page the wireless station can send to the host. SSA and ESA are 8-bit C-1 control characters that can also be coded as 7-bit escape sequences. The following conditions apply to SSA and ESA: " "
They work only when SATM is reset. If the wireless station receives ESA before SSA, it ignores ESA.
VT220/ANSI Terminal Emulation Programmer’s Reference Guide
8-65
Page 202
SECTION 8
"
Programming
If SSA is not followed by ESA on the same page, the SSA has no effect on that page. Selected areas must always end with ESA. " Selected areas cannot be changed by the ED, EL, or ECH control functions. Table 8-47 describes SSA and ESA. "
Table 8-47 Start Selected Area and End Selected Area Name (Mnemonic) 8-Bit Start selected area SSA (SSA) (86 hex.)
7-Bit Equivalent ESC F (1B, 46 hex.)
End selected area (ESA)
ESC G (1B, 47 hex.)
ESA (87 hex.)
Wireless Station Action Marks the cursor position as the first of a string of character positions the wireless station can send to the host. Defines the cursor position as the last of a string of character fields the wireless station can send to the host.
Local Edit Mode Keys Keys with special functions in local edit mode are described in Table 8-48.
8-66
VT220/ANSI Terminal Emulation Programmer’s Reference Guide
Page 203
SECTION 8
"
Programming
Table 8-48 Local Edit Mode Keys Key(s)
Function
Find
Advances cursor to the top margin, Column 1.
Tab
Advances cursor to the next tab stop. If in protected area, it advances to the next selectable field. If tab stop is selected, it advances to the next selectable field.
Insert here
Default mode is “insert.” The key toggles between insert and overstrike. If in insert mode, all following characters in the field are shifted right one position. If the field is full the last character is deleted.
Remove
If in protected area, wireless station beeps and the cursor advances to the first position of the next selectable field. If no selectable field is found, it advances to the bottom margin (the default is Row 24, Column 80). If in unprotected field, the field is cleared and the cursor is positioned to the beginning of the selectable field.
Prev screen
Ignores this key.
Next screen
Ignores this key.
Select
Ignores this key.
Backspace
Moves cursor one position to the left until it reaches the left margin.
Delete
Deletes the previous selectable character.
A--Z, 0--9, If one of these keys is pressed while in a proAuxiliary keypad tected area, the wireless station beeps, advances the cursor to the next selectable field, and enters the characters. If no other selectable field is found, the cursor advances to the bottom margin.
VT220/ANSI Terminal Emulation Programmer’s Reference Guide
8-67
Page 204
SECTION 8
"
Programming
Table 8-48 (Continued) Local Edit Mode Keys Key(s)
Function
Backtab
Cursor moves back to the first occurrence of the following: " "
"
"
Cursor
[Y]
[B]
8-68
Previous tab stop. Beginning of the current unprotected field. Beginning of the previous unprotected field. Beginning of scrolling region. (Also called top margin.)
Cursor moves up one line until it reaches the top margin. The wireless station beeps when the cursor reaches the top margin. Cursor moves down one line until it reaches the bottom margin. The wireless station beeps when the cursor reaches the bottom margin.
["]
Cursor moves right one character position until it reaches the right margin. The wireless station beeps when the cursor reaches the right margin.
[A]
Cursor moves left one character position until it reaches the left margin. The wireless station beeps when the cursor reaches the left margin.
VT220/ANSI Terminal Emulation Programmer’s Reference Guide
Page 205
SECTION 8
"
Programming
Scanning in Local Edit Mode When scanning is enabled, data from the scanner is placed into the field where the cursor is located. If the cursor is not in an input field, the data from the scanner is placed into the next input field. If the data from the scanner fills the first input field, the remaining characters are placed into the next input field. When the bar code does not fill the input field, the cursor stays where it ended. If autotab scanning is enabled, the cursor is placed at the beginning of the next input field. If not next input field is found, extra data will be lost.
Set Transmit Termination Character (DECTTC) The wireless station supports the set transmit termination character (DECTTC) control function. Use the control function to select a character to indicate the end of a block transmission. You do not need to use an end-of-block character. The wireless station sends the end-of-block character to the host at the end of each block transmission. The control sequence is: CSI Ps ê Ps is the end-of-block character in the following chart. Ps End-of-Block Character 0 (default) No character (DECTTC disabled)
Wireless Station Action
1
FF (0C hexadecimal)
Form feed
2
ETX (03 hexadecimal)
End of text
3
EOT (04 hexadecimal)
End of transmission
4
CR (0D hexadecimal)
Carriage return
5
DC3 (13 hexadecimal)
XOFF
VT220/ANSI Terminal Emulation Programmer’s Reference Guide
8-69
Page 206
SECTION 8
"
Programming
Use an extended form of DECTTC to select a string of characters to indicate the end of a block. The extended form uses decimal codes to represent characters. You can use the extended form to send a control function at the end of a block transmission, instead of a single character. You can send a control sequence of up to six characters (Pn1 through Pn6) at the end of a block. The control sequence is: CSI ? Pn1 ; ¼ Pn6 ê Pn1 through Pn6 are decimal codes for characters you can define as end-of-block. For example, the decimal code for ESC is 27 (1B hexadecimal). A code outside the range of 0 to 254 is ignored. The tables on pages 8-4 and 8-8 contain decimal codes for characters. For example, to send the default code of the PF1 key on the wireless station’s numeric keypad at the end of a block transmission, use the following procedure. 1. The PF1 key sends this default code: ESC O P 2. Translate each character in the sequence to decimal code. ASCII characters: ESC O P Decimal codes: 27 79 80 3. Insert the decimal codes into the extended DECTTC sequence: CSI ? 27 ; 79 ; 80 ê
8-70
VT220/ANSI Terminal Emulation Programmer’s Reference Guide