Hey guys; once again I could use some help. Is it possible to trap ^C so it doesn't exit to dos when using getch() to read input? I've used
This seems to trap all cntrl keys except for ^C which, when pressed, immediately exits to dos. I'd like to do it without using dos vector or bioskeybrd type of calls. Does anyone have any ideas?Code:unsigned keyRead; keyRead = getch(); if(iscntrl(keyRead)) printf("control key 0x%x\n", keyRead);
TIA