Zebra 140xi User Guide

Page of 82
External Terminal Control
64
980548-001 Rev. A
KDU Plus User’s Manual
6/12/06
KDU Plus ANSI Escape Sequence Commands
Mnemonic Sequence
Description
CPR
ESC[6n
Cursor Position Report: Returns the current row and column position of the 
cursor in the form ESC[<row>;<col>R
CUP
ESC[Pn;PnH  Cursor Position: Moves the cursor to the specified position (coordinates). If 
you do not specify a position, the cursor moves to the home position — the 
upper-left corner of the screen (line 1, column 1). 
CUU
ESC[PnA
Cursor Up: Moves the cursor up by the specified number of lines without 
changing columns. If the cursor is already on the top line, this sequence is 
ignored. 
CUD
ESC[PnB
Cursor Down: Moves the cursor down by the specified number of lines without 
changing columns. If the cursor is already on the bottom line, this sequence is 
ignored. 
CUF
ESC[PnC
Cursor Forward: Moves the cursor forward by the specified number of 
columns without changing lines. If the cursor is already in the rightmost 
column, this sequence is ignored. 
CUB
ESC[PnD
Cursor Backward: Moves the cursor back by the specified number of columns 
without changing lines. If the cursor is already in the leftmost column, this 
sequence is ignored. 
ED
ESC[2J
Erase Display: Clears the screen and moves the cursor to the home position 
(line 1, column 1). 
KVC
ESC[?25h
Cursor visible: Makes the cursor visible on the display.
KCI
ESC[?25l
Cursor invisible: Turns off the cursor so it cannot be seen on the display.
OSC
ESC]
Operating system command: Begin macro command sequence.
(Non-ANSI command)
ST
ESC\
String terminator: End macro command sequence. 
(Non-ANSI command)
KDU Plus ANSI Escape Command Parameter Definitions
Parameter Description
Definition
Pn
Numeric 
parameter  
Specifies a decimal number
Ps
Selective 
parameter  
Specifies a decimal number that you use to select a function.  You can 
specify more than one function by separating the parameters with 
semicolons.
Pl
Line 
Specifies a decimal number that represents one of the lines on your 
display or on another device.
Pc
Column 
Parameter
Specifies a decimal number that represents one of the columns on your 
screen or on another device.