TIP: Click on subject to list as thread! ANSI
echo: c_plusplus
to: ALL
from: JOHN HOWARD
date: 1997-11-17 07:24:00
subject: CTRL-C

   I have a question concerning the CTRL-C character.  I'm currently writing
a program which I don't want accepting the CTRL-C character.  When I use
getch(), I'm able to bypass the CTRL-BREAK by using an interrupt handler
to replace it, and save my program from exiting.  However, the CTRL-C
character still prints to the screen.  How do I stop dos from acknowledging
this character?
   I tried Borland's ctrl-c handler routine, but the character itself still
gets sent to the screen.  Is there anyway to trap this character, or am
I going to have to rewrite my character input, and read the keyboard port
myself?
   Anyhelp would be most appreciated.
jh
--- FMailX32 1.22
---------------
* Origin: Access Denied BBS!! (918)358-5244 (1:170/151)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.