Programming instructions
142
Intermec Fingerprint 6.13 – Programmer's Guide
2. Display, cont'd.
15. PRINTER FUNCTION CONTROL, cont'd.
Cursor Control
The cursor control instructions can be used for four purposes:
• To clear the display from messages (as an alternative to the double
PRINT# statement on line 20 in the example above).
• To enable or disable the cursor.
• To select cursor type (underscore or block/blink)
• To place the cursor at a specified position or to move it.
The cursor is either a black line under a character position in the
display, or a blinking block that intermittently blacks out the
character position:
Each cursor control command should start with the character CSI
(Control Sequence Introducer) = ASCII 155 decimal, or (in case of
7-bit communication) with the characters “ESC” + “[” (ASCII 27
+ 91 decimal).
Clearing the Display
Syntax: <CSI> + <<0|1|2>J>
where: CSI = ASCII 155 dec.
0 = From active position to end, inclusive (default)
1 = From start to active position, inclusive
2 = All of the display
J = Must always append the string
Example (clears all of the display):
10 OPEN "console:" FOR OUTPUT AS 1
20 PRINT#1, CHR$(155) + "2J";
Selecting Cursor Type
Syntax: <CSI> + <4p|5p>
where: CSI = ASCII 155 dec.
4p = Underscore
5p = Block/Blink (default)
Example (selects underscore-type cursor):
10 OPEN "console:" FOR OUTPUT AS 1
20 PRINT#1, CHR$(155) + "4p";
Continued!
Cursor