🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: net.micro.atari16
Article #657

Re: Catching ^C and "mushrooms"

#657
From: alexande
Date: Tue, 29 Apr 1986 06:39
25 lines
1640 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>
Path: arc1-ca.pugleaf.net!utzoo!linus!philabs!cmcl2!harvard!husc6!panda!genrad!decvax!ittatc!dcdwest!sdcsvax!sdcrdcf!hplabs!hpda!hpisoa2!hpitg!drivax!alexande@drivax
References: <197@atari>

Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: arc1-ca.pugleaf.net!utzoo!linus!philabs!cmcl2!harvard!husc6!panda!genrad!decvax!ittatc!dcdwest!sdcsvax!sdcrdcf!hplabs!hpda!hpisoa2!hpitg!drivax!alexande@drivax
From: alexande@drivax
Newsgroups: net.micro.atari16
Subject: Re: Catching ^C and "mushrooms"
Message-ID: <470@drivax>
Date: Tue, 29-Apr-86 02:39:00 EDT
Article-I.D.: drivax.470
Posted: Tue Apr 29 02:39:00 1986
Date-Received: Wed, 14-May-86 06:08:43 EDT
References: <197@atari>
Lines: 25