A89: Re: detecting the ON key
[Prev][Next][Index][Thread]
A89: Re: detecting the ON key
you can check to see if the on key was pressed with OSCheckBreak(); and you
can clear a on key press with OSClearBreak(); both are in the system.h
header file
Greg
_________________________________
All parts should go together without forcing. You must remember that the
parts you are reassembling were disassembled by you. Therefore, if you can't
get them together again, there must be a reason. By all means, do not use a
hammer.
-- IBM maintenance manual, 1925
----- Original Message -----
From: "Alex Astashyn" <simba@inyc.com>
To: "Assembly-89@Lists. Ticalc. Org" <assembly-89@lists.ticalc.org>
Sent: Thursday, January 04, 2001 2:01 PM
Subject: 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
>
>
>
__________________________________________________
Do You Yahoo!?
Talk to your friends online with Yahoo! Messenger.
http://im.yahoo.com
Follow-Ups:
References: