POSITION:028,114
COLOUR:STANDARD
TEXT:00,But remember that a program cannot directly accept a value of Ctrl-C,
TEXT:16,allow_break() or not. How can it know when to perform an orderly shutdown
TEXT:16,if it can't accept that value? Well, while it cannot accept Ctrl-C, it
TEXT:16,can DETECT it using this library routine:
COLOUR:EUPHORIA
TEXT:32,include file.e
TEXT:16,   = check_break()
COLOUR:POINTS
TEXT:00,ri
COLOUR:STANDARD
TEXT:32,check_break() returns the number of times Ctrl-C has been pressed since
TEXT:16,the start of the program, or since the last time check_break() was
TEXT:16,issued. This does not return the actual Ctrl-C code, it just returns a
TEXT:16,value that indicates the number of times Ctrl-C was detected by the
TEXT:16,program.
