You have them enter this text? Or are you meaning a single keystroke? (If you mean a keystroke, I'd guess you're not doing this right.)
what i need, i want the user 2 enter CTRL-X to end the program
#define ........ "CTRL-X" ( what could i write here)
so the program end whenever the user press CTRL-X
If you are trying to intercept keystrokes, you may be interested in
signals.
Reputation Points: 2780
Solved Threads: 312
long time no c
Offline 4,790 posts
since Apr 2004