[Coco] How to detect a key pressed in OS-9

Allen Huffman alsplace at pobox.com
Tue Apr 23 20:11:04 EDT 2013


On Apr 23, 2013, at 7:01 PM, Luis Antoniosi (CoCoDemus) <retrocanada76 at gmail.com> wrote:
> KySns seems to detect only the 8 directional, control, shift and space keys.
> 
> But how to detect any key was pressed prior to read it ? Like in Basic:


Look up _gs_rdy() -- it returns the number of characters waiting to be read, if I remember correctly. There is an OS-9 system call that will do this, for use in BASIC09 and asm.

		-- Allen





More information about the Coco mailing list