Technical data
I]
t·i
K
\'
B D
Statement
To
redefine
the
typing aids available from
the
keyboard,
use
the
0
t·4
K E
\'
#
statement
without
a line number. For example,
to assign
the
CLEAP
statement
to the @
function
key
enter
the
following statement:
o
t·~
K E
\'
# 9., " C
LEA
F.:
"
.'
"C
LEA
P
.....
1
3"
(Return)
Pressing @ is equivalent to typing
the
C
LEA
P
statement
and
pressing return.
The
Ot·4
K\'BD
statement
is
used
to initiate
program
branch-
ing
when
a specific key is pressed. The escape sequences
returned
by
the
special keys
on
the
Integral
PC
keyboard
have
been
remapped
in
BASIC from
the
standard
TermO
se-
quences to the escape sequences listed
in
the
following
section. The escape sequence consists
of
the
escape character
plus
one
alphabetic character. For example,
the
escape se-
quence
for
the
@ function key is
"·····366"
or
C H P $
0::
27::0
t " n
".
To
branch
on
this key,
enter
one
of
the
fol-
lowing statements:
1
[1
o
t·~
K'-(
BD
''-''
-3
1
ue
"
.'
.....
366
"
GOTO
999
or
1
[1
Ot·~
K
\'
B D
',.,'·3
1
ue
CHP$
(
'-1
-,
)
8.:
"
n
"
GOTO
999
. '
.::.
..
When
the
key specified
by
the
string expression is pressed,
the
0
t·~
K
\'
B D
statement
returns
a value equal to
the
ASCII
value
of
the
alphabetic character
plus
256. For example,
when
function
key @ is pressed
the
variable
''-''
-3 1
'-~
e is assigned
the
value 366 (the decimal ASCII value of
the
letter n plus 256).
Testing
the
value
of
the
numeric variable provides a
method
of
identifying
the
key causing
the
interupt
when
the
string
expression enables
branching
on
more
than
one
key.
Integral
PC
Specifics
2-3