Newby with a Ctrl-C problem
- Posted by "Bown, John" <John.Bown at UK.ORIGIN-IT.COM> Oct 09, 1998
- 632 views
Greetings Euphorians, Please excuse me if I'm breaking any etiquette rules here ( can't get at alt.lang.euphoria from behind our firewall and haven't had time to plough through the archived material ) ... I'm new to Euphoria - I was so impressed by what I saw when I discovered the language I have decided to use it on my latest project, however, as with all languages ( trying to run before I can walk ), I've hit a problem ... I *must* be able to trap and handle Ctrl-C within my application - Using allow_break(TRUE) causes the app. to exit to MS-DOS as soon as Ctrl-C appears. Using allow_break(FALSE) prevents the exit to MS-DOS but get_key() doesn't return anything so I can't tell that Ctrl-C has turned up and handle it Anyone got any suggestions / solutions ? Many thanks in anticipation, John Bown Origin UK Ltd 323 The Science Park Milton Road Cambridge CB4 4WG United Kingdom mailto:john.bown at uk.origin-it.com http://www.psynet.net/hippy