Advanced
BIOS
Functions
CURSOR
POSITION
There are two ways
to
move the cursor
to
a specified position. The
standard
escape
sequence uses one
of
the following two formats.
ESC[PI;PcH
or
ESC[PI;Pcf
default value: 1
These sequences move the cursor
to
the position specified by the parameters.
PI
= line
number
A parameter value
of
0
or
1 moves the active cursor position
to
the first
line in the display. A
parameter
value
of
n moves the the active position
to
the nth line in the display.
If
n
is
greaer
than
25, the system treats n as
25.
Pc = column number
A
parameter
value
of
0
or
1 moves the active cursor position
to
the first
column
in the display. A
parameter
value
of
n moves the active
position
to
the nth column.
If
n
is
greater
than
SO,
the system treats n as
SO.
As
an
alternative
to
the
standard
escape sequence for cursor position, the following
cursor position escape sequence can be used in programs where the
ADM-3A
Mode
is
more appropriate.
ESC
= Ic
This sequence moves the cursor position to the position specified by the parameters.
I = line
number
The
line
number
is a
binary
value in the range 20H (first line) - 3SH
(25th line).
If
I > 3SH, the system treats I as 3SH.
If
1<
20H, the system treats I as 20H.
c = column
number
The
column
number
is a
binary
value in the range 20H (first column)-
6FH
(SOth
column)
If
c >
6FH,
the system treats c as 6FH.
If
c < 20H, the system treats
cas
20H.
Note
that
the line
and
the column numbers are hex offsets
rather
than
the actual line
and
column numbers used in the
standard
cursor position escape sequence.
6-5