EASY Question, How to detect delete key and backspace input for scanf
Posted on 2004-04-28
Title is a little confusing, but my program asks for input
and if they mess up and press the backspace it inserts weird characters, or when they press the back arrow key or forward error key.
How to detect that these keys were pressed and the input is deleted one space or if arrow key is pressed the cursor goes back or forward one place?
I am doing this program in C and some C++, so either solution would be nice.
This is a command line program.