TIP: Click on subject to list as thread! ANSI
echo: cis.os9.68000.osk
to: Bob Palmer 74646,2156
from: Kevin Darling 76703,4227
date: 1992-02-03 00:15:16
subject: #14151-BASIC`s INKEY

#: 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

SOURCE: compuserve via textfiles.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.