HV ANSI Series Technical Reference Manual, MAN0340, Rev. A
5-5
Self-Test & Return Commands
Perform Self-Test & Return Results
Syntax
Esc [4n
Notes
This command performs the built-in confidence test and reports the result.
A response of
Esc [0n
indicates that the terminal passed the confidence test; a response
of
Esc [3n
indicates that the confidence test has not run or that a malfunction occurred.
Return Last Self-Test Results
Syntax
Esc [5n
Notes
This command reports the result of the last confidence test run since the terminal
power up.
A response of
Esc [0n
indicates that the terminal passed the confidence test; a response
of
Esc [3n
indicates that the confidence test has not run or that a malfunction occur.
Return Device Attributes
Syntax
Esc [c
Notes
This command sends the following string to the host indicating that the terminal is
ANSI 3.64/VT100 compatible:
Esc [?8; 4c
.
Return Terminal Identifier String
Syntax
Esc [p
Notes
This commands sends the following identifier string to the host:
Esc [0x HV
nn
X
CCCC
Esc [1x
Where
nn
is the keypad type (20 or 30) and
CCCC
is the four-byte hexadecimal
checksum of the terminal’s program memory.
When using this command to identify the terminal type, do not include the checksum
as it may change.
Return Cursor Position
Syntax
Esc [6n
Notes
This command sends the cursor’s current location to the host in the form:
Esc [
Rn
;
Cn
R
Where
Rn
is the row number and
Cn
is the column number. For example, a return of
Esc [4; 21R
indicates a cursor position of Row 4, Column 21.
When the Scroll parameter is set to LAST CHR+1, a return of
Esc [8; 25R
or
Esc [16;
33R
(depending on the screen size) represents the cursor position after a character is
written to Row 8, Column 24 or Row 16, Column 32.