Link to home
Start Free TrialLog in
Avatar of Jonman364
Jonman364Flag for United States of America

asked on

C++ menu navigation with arrow keys

How do I capture when an arrow key is pressed so that I can highlight a different option of the menu. The menu would look something like this:
----------
Main Menu

Option 1         Option2
Option 3         Option4
----------
ASKER CERTIFIED SOLUTION
Avatar of Exceter
Exceter
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Jonman364

ASKER

I'm using dev c++. My program will be running without windows loaded.
Never mind the last post. I'm now using DJGPP. I thought there was an option for dos program (not just console program).
You wouldn't consider using Borland would you?
i have borland c++ builder 5.5, but when i compile a program with it, then try to run the exe file on my dos machine I get a message that says "This program must be run under Win32"
Wow this question is still open? I don't remember excatly what I did to solve my problem. I don't believe I had to change compilers. But as I look back to some old files from the time, it looks like I used getch() so I'm awarding points to Exceter. Not only because he was the only one to tell me to use getch(), but also he was the only one to try to anwer my question.  I can't test my old code to see if it works because I'm running Linux only now, and therfore don't have conio to test it with.