I have a program running in Unix and I want to detect if Ctrl-P has been pressed while this program is running. Is there any simple way to do this?
I have a program running in Unix and I want to detect if Ctrl-P has been pressed while this program is running. Is there any simple way to do this?
That depends on what you mean by simple. Ctrl-char keypresses are usually signals, which is a type of inter-process communication. It's a tricky subject if you're new to c or system programming. What do you want the ctrl-P to do?
starX
www.axisoftime.com
We are writing a simple token ring network program as a class excercise. When Ctrl-P is pressed, the terminal that receives the command is supposed to generate the token.