Article View: net.micro.atari16
Article #537Re: Catching ^C and "mushrooms"
From: alexande
Date: Mon, 28 Apr 1986 21:39
Date: Mon, 28 Apr 1986 21:39
25 lines
1790 bytes
1790 bytes
In article <197@atari.UUcp> dyer@atari.UUcp (Landon Dyer) writes:
>You CAN catch ^C (as well as any other terminate). In the grand DRI
^^^
>tradition, it is the usual monster kludge:
> 0x102 Terminate (^C) Handler
> Before a process is actually terminated, GEMDOS
> calls the terminate vector. If the terminate vector
> points to an RTS (the default case), the process will
> be terminated. If the application does not wish to be
> terminated it should do a longjump (or its equivalent)
> to an appropriate handler.
This is actually the grand Microsoft tradition. MS-DOS has an almost
identical method for catching ^C, using INT 23H. Jason ("Born to Code")
Loveman put it into GEMDOS (TOS) as part of his plan to be as similar to
MS-DOS as possible. Read IBM's DOS Tech. Ref. if you want deja vu.
--
#include "disclaimer.h"
#include "quote.h"
-- Mark Alexander {ihnp4,mot,ucscc,ucbvax!hplabs!amdahl} !drivax!alexande
--
--
#include "disclaimer.h"
#include "quote.h"
-- Mark Alexander {ihnp4,mot,ucscc,ucbvax!hplabs!amdahl} !drivax!alexande
Technical Details
Message-ID:
<470@drivax.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!watmath!clyde!burl!ulysses!bellcore!decvax!decwrl!nsc!amdahl!drivax!alexandeReferences:
<860409-150043-1731@Xerox> <3511@sun.uucp> <197@atari.UUcp>Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: arc1-ca.pugleaf.net!utzoo!watmath!clyde!burl!ulysses!bellcore!decvax!decwrl!nsc!amdahl!drivax!alexande From: alexande@drivax.UUCP Newsgroups: net.micro.atari16 Subject: Re: Catching ^C and "mushrooms" Message-ID: <470@drivax.UUCP> Date: Mon, 28-Apr-86 17:39:38 EDT Article-I.D.: drivax.470 Posted: Mon Apr 28 17:39:38 1986 Date-Received: Thu, 1-May-86 04:14:47 EDT References: <860409-150043-1731@Xerox> <3511@sun.uucp> <197@atari.UUcp> Reply-To: alexande@drivax.UUCP (Mark G. Alexander) Organization: Digital Research, Monterey, CA Lines: 25 Keywords: TOS, MS-DOS Summary: TOS is like MS-DOS