Pretend i've got the following prompts that I want to display to a user:
Full Name:
Address:
Phone Number:
I'd like to make it so that the user can use the up/down arrow keys to navigate through prompts. I'm thinking that in order for this to be done i'd need to somehow turn off buffers so that I could "listen" for an up/down keypress and then move the cursor up/down a line? If so how can I do that?
Is this entirely command line, or is it a win32 console program?
If it's a console program, you can use the virtual keys. If not, IIRC, you'll need some assembly to access the keyboard interupt and "watch" it for the keys, which are actually double-byte codes.