🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: alt.msdos.programmer
3 messages
3 total messages Started by Bob Piskac Sat, 12 Sep 1992 02:25
Control C and Break
#292
Author: Bob Piskac
Date: Sat, 12 Sep 1992 02:25
6 lines
554 bytes
How do you trap a Control Break or Control C in MS C V7.0.  I can
stop it from interupting the program, but I get a ^C on the screen.

Thanks,

piskacrj@mentor.cc.purdue.edu
Re: Control C and Break
#293
Author: AAron nAAs
Date: Sat, 12 Sep 1992 22:18
14 lines
1001 bytes
From article <BuG1F8.G6o@mentor.cc.purdue.edu>, by piskacrj@mentor.cc.purdue.edu (Bob Piskac):
> How do you trap a Control Break or Control C in MS C V7.0.  I can
> stop it from interupting the program, but I get a ^C on the screen.
> 
> Thanks,
> 
> piskacrj@mentor.cc.purdue.edu
We wrote a program with a TUI, and had a Ctrl-C handler that did nothing.
We encountered your problem of the ^C on the screen, and our quick and
dirty solution was to redirect stdout in initialization.  Since we did
special screen writes it wasn't a problem.

AAron nAAs
Eclat Technologies, Inc.
Re: Control C and Break
#295
Author: DAVID SCOTT PASCHAL
Date: Sun, 13 Sep 1992 02:37
27 lines
1699 bytes
In article <1992Sep12.221805.18053@news.clarkson.edu>, AAron@sun.soe.clarkson.edu (AAron nAAs) writes:
|> 
|> From article <BuG1F8.G6o@mentor.cc.purdue.edu>, by piskacrj@mentor.cc.purdue.edu (Bob Piskac):
|> > How do you trap a Control Break or Control C in MS C V7.0.  I can
|> > stop it from interupting the program, but I get a ^C on the screen.
|> > 
|> > Thanks,
|> > 
|> > piskacrj@mentor.cc.purdue.edu
|> We wrote a program with a TUI, and had a Ctrl-C handler that did nothing.
|> We encountered your problem of the ^C on the screen, and our quick and
|> dirty solution was to redirect stdout in initialization.  Since we did
|> special screen writes it wasn't a problem.
|> 
|> AAron nAAs
|> Eclat Technologies, Inc.
|> 

Hi.  You might want to try using console I/O rather than stdio I/O, because the
console routines get characters from the ROM-BIOS rather than from DOS, and the
BIOS doesn't write ^C's to the screen like DOS does.  However, you still might
want to trap INT 1Bh (the BIOS Ctrl-Break trap) so DOS won't see it when you
try to write a file or something.

Tschuess,
David Paschal
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads