Programming instructions
143
Intermec Fingerprint 6.13 – Programmer's Guide
2. Display, cont'd.
15. PRINTER FUNCTION CONTROL, cont'd.
Cursor Control, cont'd.
Enabling/Disabling the Cursor
Syntax: <CSI> + <2p|3p>
where: CSI = ASCII 155 dec.
2p = Cursor On
3p = Cursor Off (default)
Example (enables the cursor):
10 OPEN "console:" FOR OUTPUT AS 1
20 PRINT#1, CHR$(155) + "2p";
Note that a semicolon should append the PRINT# instructions in
order to avoid interfering with existing messages in the display.
Setting the Absolute Cursor Position
Syntax: <CSI> + <<v>;<h>H>
where: CSI = ASCII 155 dec.
v = Is the line (1 = Upper; 2 = Lower)
h = Is the position in the line (1–16)
H = Must always append the string
If v, h or both are missing, the default value is 1.
Example (setting the cursor in upper left position):
10 OPEN "console:" FOR OUTPUT AS 1
20 PRINT#1, CHR$(155) + "H";
Example (setting the cursor in lower right position):
10 OPEN "console:" FOR OUTPUT AS 1
20 PRINT#1, CHR$(155) + "2;16H";
Move the Cursor Relative to Current Position
Syntax: <CSI><n>A | B | C | D
where: CSI = ASCII 155 dec.
n = Is number of steps relative to current position
(default = 1).
A-D= Is the direction, where A = Up, B = Down,
C = Forward, D = Backward
The relative movement must not place the cursor
outside the display area (2 × 16 positions) or the
instruction will be ignored.
Example (moving the cursor from the first position in the upper line
to the last position in the lower line):
10 OPEN "console:" FOR OUTPUT AS 1
20 PRINT#1, CHR$(155) + "1B";
30 PRINT#1, CHR$(155) + "15C";