6530 Programmer's Guide
Conversational Mode Operation
2-6
6530 Programmer’s Guide
The type of addressing used depends on the control or escape sequence
you use. You can choose between the sequence that uses normal
addressing and the one that uses extended addressing. Normal addressing
allows access to all positions currently available on the screen. The
extended addressing sequences also provide access to all current screen
positions and, in addition, allow for possible future enhancements in
screen formats, such as more rows or columns.
Set Cursor Address (DC3)
The DC3 control character (l3H) sets a new cursor position on the screen
using normal addressing as described above. You can use this control
sequence to access any screen position up to 96 columns. The DC3
character must be followed by two encoded ASCII characters that
specify the new row and column positions for the cursor. For example,
the following sets the new cursor location to row 5, column 2:
13H $ !
Set Cursor Address Extended (Esc - D)
The Esc - D sequence sets a new cursor position on the screen with
extended addressing format (as described in “Cursor Location” on page
2-5). The format for the escape sequence is as follows:
Esc -
row ; column
D
where:
row
and
column
are decimal numbers that specify the new cursor
location.
D terminates the sequence.
For example, the following sequence sets the new cursor location to
row 5, column 72:
1BH - 5;72 D
Read Cursor Address (Esc a)
The Esc a escape sequence causes the 6530 to transmit the current cursor
address to the host. The message returned to the host uses normal
addressing as described in “Cursor Location” on page 2-5. The returned
message sequence has the following general format:
SOH _ !
row column
CR