From: Damian Yerrick Newsgroups: comp.os.msdos.djgpp Subject: Re: Untrapping Ctrl-C in DJGPP Organization: Pin Eight Software http://pineight.8m.com/ Message-ID: References: <01bf725f$15b1d9e0$12e126d4 AT pena-ii> <01bf7348$40dc9260$69e126d4 AT pena-ii> <38A472E7 DOT 2E9862E1 AT is DOT elta DOT co DOT il> X-Newsreader: Forte Agent 1.7/32.534 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Lines: 32 X-Trace: /bQNubjGSjVa76AzxhL9gyhaxoGSpqNEdOKBAJusxvM1szkNrXHMBp9DPjOyQzYBjjgBZI1N94pV!BbHBVWnTnEOy78rAonq62Lb++6sqiH7/RnxGxQp9vNFVQFQtYMFc5w7HeDrFSi7yFPHyYGvkRYcT!1EoQudk= X-Complaints-To: abuse AT gte DOT net X-Abuse-Info: Please be sure to forward a copy of ALL headers X-Abuse-Info: Otherwise we will be unable to process your complaint properly NNTP-Posting-Date: Sat, 12 Feb 2000 03:36:10 GMT Distribution: world Date: Sat, 12 Feb 2000 03:36:10 GMT To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com On Fri, 11 Feb 2000 22:36:55 +0200, Eli Zaretskii wrote: >Damian Yerrick wrote: >> >> What signal does clicking a Win9x DOS box's close box generate? > >None. Windows closes the DOS box by killing the VM in which that DOS box >runs. > >If the VM still runs a DOS programs, Windows sets the current PSP to that >program's PSP and then calls function 4Ch of Int 21h, in effect forcing the >program to exit to DOS. > >In any case, no signal is delivered to the program. In fact, neither DOS nor >Windows have signals as part of their operation, it's something created and >handled entirely by the applications' run-time support. (This is unlike on >Unix, where signals are generated by the OS.) So how does edit.com catch it? (open dos box) edit foo.c (type some garbage) (click close box) Save changes to foo.c? -- Damian Yerrick http://yerricde.tripod.com/ Comment on story ideas: http://home1.gte.net/frodo/quickjot.html AOL is sucks! Find out why: http://anti-aol.org/faqs/aas/ View full sig: http://www.rose-hulman.edu/~yerricde/sig.html