home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!olivea!isc-br!tau-ceti!comtch!mhughes
- From: mhughes@comtch.spk.wa.us (Mark Hughes)
- Newsgroups: comp.sys.atari.st.tech
- Subject: Re: Trapping ^C
- Message-ID: <668JPB2w165w@comtch.spk.wa.us>
- Date: 15 Aug 92 18:06:52 GMT
- References: <1992Aug14.071027.24659@mnemosyne.cs.du.edu>
- Sender: bbs@comtch.spk.wa.us (Waffle bbs)
- Organization: Waffle BBS at CompuTech Spokane, Washington
- Lines: 14
-
- > What's a good method of trapping a ^C from within a program and ignoring
- > it? I've tried using the terminate handler (vector 0x0102) but that gets
- > control on *any* type of program exit (ie, even if you called exit()). I
- > can't find anything in the atari docs that says how to tell if the terminate
- > handler was invoked by a detection of ^C in DOS, but (oddly enough) they
- > call that vector the ^C handler in the docs.
-
- I would suspect that you'd have to rewrite dLibs, Ian. The GEMDOS
- functions Cconrs, Cnecin, etc. will terminate the program if they see a
- ^C. The output functions should be fixable without conversions, but not
- the inputs. Of course, I could be wrong, but I had that problem myself
- for quite a while. I finally reverted to using BIOS functions...
-
- - Mark Hughes #1101 mhughes@comtch.spk.wa.us
-