644
Appendix A: System Routines — Keyboard
TI
-
89 / TI
-
92 Plus Developer Guide
Not for Distribution
Beta Version January 26, 2001
OSCheckBreak
Declaration:
WORD
OSCheckBreak
(void)
Category(ies):
Keyboard
Description:
Test the break flag.
Inputs:
None
Outputs:
True if the
´
key was pressed with break enabled, false otherwise.
Assumptions:
None
Side Effects:
The
´
key is tied to a high level interrupt (level 6), and is used on the
calculator as a “break” key to allow the user to interrupt the current flow of
activity. This call returns true and clears all pending keys from the key
queue if the
´
key has been pressed at least once since the last call to
OSClearBreak
.
Availability:
All versions of the TI-89 / TI-92 Plus.
TI-89 / TI-92 Plus
Differences:
None
See Also: OSOnBreak, OSClearBreak, OSEnableBreak, OSDisableBreak
Example:
while (! OSCheckBreak()) /* increment i until ON key is pressed */
i++;