#: 14167 S12/OS9/68000 (OSK)
03-Feb-92 00:15:16
Sb: #14151-BASIC's INKEY
Fm: Kevin Darling 76703,4227
To: Bob Palmer 74646,2156
Hi Bob,
Normally, INKEY returns the number of characters waiting (using the SS_Ready
GetStatus call). So you might say something like...
DIM k:STRING[1]
IF INKEY(#0) 0 THEN
GET #0,k
ENDIF
But the stock TC70 video driver doesn't support SS_Ready (weird! but should be
easy for them to fix), so you get the error 208 (unimplemented stat call)
instead. There's no easy way around that without using a second process to sit
and read the keyboard for you.
However, if your desired program just needs to get one key at a time, and
doesn't mind waiting for it (instead of actually polling for a key), then you
can just:
DIM k:STRING[1]
GET #0,k
And/or you could set up a signal (SS_SSig) to let you know when a key is hit. I
hope one of these ideas will do what you need, until you get another driver
setup. best - kevin
|