Groups | Search | Server Info | Login | Register
Groups > comp.sys.apple2.programmer > #6271
| Path | csiph.com!weretis.net!feeder8.news.weretis.net!reader5.news.weretis.net!news.solani.org!.POSTED!not-for-mail |
|---|---|
| From | Oliver Schmidt <ol.sc@web.de> |
| Newsgroups | comp.sys.apple2.programmer |
| Subject | Re: Ctrl-C Interrupt? |
| Date | Mon, 11 Dec 2023 19:10:41 -0000 (UTC) |
| Message-ID | <ul7mrh$2l8d7$1@solani.org> (permalink) |
| References | <20231210194712.4301d589@smilodon-gracilis> <8ROdnZS9bYMI4Ov4nZ2dnZfqnPednZ2d@earthlink.com> <20231211100943.0c7dcc0e@smilodon-gracilis> |
| MIME-Version | 1.0 |
| Content-Type | text/plain; charset=ISO-8859-1 |
| Content-Transfer-Encoding | 8bit |
| Injection-Date | Mon, 11 Dec 2023 19:10:41 -0000 (UTC) |
| Injection-Info | solani.org; logging-data="2793895"; mail-complaints-to="abuse@news.solani.org" |
| User-Agent | NewsTap/5.5 (iPhone/iPod Touch) |
| Cancel-Lock | sha1:/H/r37QQlKhnqk8qy44IKGAfGh4= sha1:luSJkKCnEij4of+ft1o6od1/9Ic= |
| X-User-ID | eJwFwQkBwEAIAzBN/EzOUah/CUvCUhLlGenB4AB+FfDWA7SVz9p2S+Y7DdTaPjHWgLnDHzRjElQ= |
| Xref | csiph.com comp.sys.apple2.programmer:6271 |
Show key headers only | View raw
Hi Bill, > I am working on a Apple II/e/c program with the cc65 C compiler. I can > check for Ctrl-C in various places. In this case I suggest to use - kbhit() and cgetc() to detect the Ctrl-C - exit() to quit if Ctrl-C was detected - atexit() to run custom cleanup code Not directly related but there's also doesclrscrafterexit() that allows you determine if the user will be able to read output from your program after exit - i.e. an error message. You can call it i.e. from your atexit() function and call cgetc() if it returns true having the user acknowledge that he has read the message. Regards, Oliver
Back to comp.sys.apple2.programmer | Previous | Next — Previous in thread | Next in thread | Find similar
Ctrl-C Interrupt? Bill Chatfield <bill_chatfield@yahoo.com> - 2023-12-10 19:47 -0500
Re: Ctrl-C Interrupt? fadden <fadden@fadden.com> - 2023-12-10 17:54 -0800
Re: Ctrl-C Interrupt? Bill Chatfield <bill_chatfield@yahoo.com> - 2023-12-11 10:07 -0500
Re: Ctrl-C Interrupt? Hugh Hood <hughhood@earthlink.net> - 2023-12-10 21:10 -0600
Re: Ctrl-C Interrupt? Bill Chatfield <bill_chatfield@yahoo.com> - 2023-12-11 10:09 -0500
Re: Ctrl-C Interrupt? Oliver Schmidt <ol.sc@web.de> - 2023-12-11 19:10 +0000
Re: Ctrl-C Interrupt? Bill Chatfield <bill_chatfield@yahoo.com> - 2023-12-11 15:39 -0500
Re: Ctrl-C Interrupt? Oliver Schmidt <ol.sc@web.de> - 2023-12-12 20:36 +0000
Re: Ctrl-C Interrupt? Bill Chatfield <bill_chatfield@yahoo.com> - 2023-12-12 23:55 -0500
Re: Ctrl-C Interrupt? I am Rob <gids.rs@sasktel.net> - 2023-12-10 20:30 -0800
Re: Ctrl-C Interrupt? Bill Chatfield <bill_chatfield@yahoo.com> - 2023-12-11 10:11 -0500
csiph-web