April 16th, 2013, 10:56 AM
Ignore "^c" from printing in prompt
I'm handling the sigint signal and i can't find the function that ignores the ^C from being printed. Anyone that could give me a hand? thanks
April 16th, 2013, 03:22 PM
I suppose we first need to guess which OS and compiler you're using.
Or we could wait until you tell us.
April 17th, 2013, 06:17 AM
April 17th, 2013, 02:15 PM
April 18th, 2013, 03:10 PM
Wouldn't that change the terminal definitions? i just want to ignore the printing of ^c when pressing ctrl+c and still send the signal. I'm able to handle the signal already, I just don't know how to not print ^c when pressing ctrl+c
Originally Posted by salem
April 18th, 2013, 08:39 PM
On some terminals you can send a couple of backspaces to the terminal in your handler to rub-out the ^C sequence. Otherwise you need to use a non-echoing terminal mode that requires you to write code to echo whatever you do want to show up on the screen.
I no longer wish to be associated with this site.