A89: detecting the ON key


[Prev][Next][Index][Thread]

A89: detecting the ON key




In my program I use the following code to check whether the user pressed the
ON key:

	int key;
	if(!OSdequeue(&key, kbd_queue()) && key == KEY_ON)
		retreat = TRUE;

If the user pressed ON during the evaluation, I want the program to return
certain string (the partial answer). However, if I press the ON key, the
program returns "Error: Break", pretty much what would have happened in a
BASIC program. Is there a way to intercept the error message and return what
*I* want?

Thank you,

Sincerely,

Alex Astashyn






Follow-Ups: