Re: trapping control-c
The only method I know on how to trap the keystroke generated by Control-C
is to use the DOS prompt function to remap Control-C to something else. I was
faced with this problem when I used Microsoft C to write a program that
basically emulated a dumb terminal connection to a mainframe. On the
mainframe, Control-C was a request to go to another page. But pressing
Control-C caused the program to halt. What I did was used prompt to remap
Control C to something else
(I believe I chose the down arrow as the new value). When the program
received the down arrow key (which was really me entering Control-C at the
keyboard, it sent the correct Control-C characters to the mainframe, and
the mainframe sent the next page of data.
Crude, but that's the only way I knew how to get around this problem.
|
Not Categorized, Please Help
|
|