h6. [[OS SWI Calls]] h6(. » OS_ReadEscapeState h2. OS_ReadEscapeState h5. (SWI &2C) |_<^{width:4em}. Entry | | |<^. - |<^. - | |_<^{width:4em}. Exit | | |\2<^. C flag is set if an escape condition has occurred | h4. Use The purpose of this call is to check whether an escape condition has occurred h4. Notes Once an escape condition has been detected, (either through this or for example, with [[OS_ReadC]]), it should be acknowledged with [[OS_Byte 126]] or cleared using [[OS_Byte 124]]. This call is useful if a program is executing in a loop which the user may want to escape from, but isn't performing any input operations which would let it know about the escape. Note that this may be called from an interrupt routine. However, [[OS_Byte 126]] may not be, so if an escape is detected under interrupts, the interrupt routine must set a flag which is checked by the foreground task rather than try to acknowledge the escape itself. h4. See also * [[OS_Byte 124]] * [[OS_Byte 126]] * [[OS_ReadC]]