)
Cursor Positioning
When
positioning
the cursor on the KAYPRO
10
,
the
screen is treated as
an
array
25
characters high, and
80
characters wide. Any
spot
on the screen can be ad-
dressed by:
a
vertical coordinate (ranging from
32
to
56)
a horizontal coordinate (ranging
from
32
to
111).
The character in the upper left corner
of
the screen has coordinates
of
32,32.
The
cursor
can be moved
to
a desired
position
on the screen by writing
an
escape sequence
to
the console output. For the purpose
of
cursor positioning,
an escape sequence is a 4-byte sequence defined as follows:
Escape sequence =
ESC
EQUALSIGN
<V1>
<H1>
where:
1)
ESC
is
an
ascii
27
(1
B hex).
2)
EQUALSIGN is the character '
='
(3D
hex).
3)
V1,
H1
are 1-byte values
indicating
the
location
on the screen.
66