Click here to Skip to main content
15,903,203 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How do i detect arrow key press in a console application?
Posted
Comments
Richard MacCutchan 2-Oct-10 7:04am    
I am not advocating the use this feature, merely informing you that this is the way to get the arrow keys in a console app. How you use it is entirely up to you.

1 solution

Use the _getch()[^] function for raw input.
 
Share this answer
 
Comments
tuolesi 2-Oct-10 5:39am    
Is this the only way that can use?
After googling i found that many advise that not to use a _getch() function,y?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900