Click here to Skip to main content
15,894,540 members
Please Sign up or sign in to vote.
3.00/5 (2 votes)
See more:
Can we use cursor keys in a console application in linux using C++? Does termios.h help in any way?
Please help with some tutorials..
Thanks in advance!!!
Posted
Comments
PIEBALDconsult 30-Nov-14 13:34pm    
I don't see any reason you can't.

1 solution

Yes you can.

If you don't want to write your own code you can use a library like ncurses[^] (see also the NCURSES Programming HOWTO[^]).

If you want to write your own code, you may have a look at the ncurses sources to see how it can be implemented.
 
Share this answer
 
Comments
sovit agarwal 1-Dec-14 5:48am    
Hey Jochen thanks for the help.
But the point is i am working in linux and not windows.
Anything relatd to linux will help me a great deal....
Jochen Arndt 1-Dec-14 6:44am    
You should have followed the above links and start reading a little bit.

From the second paragraph of the first link:
"The ncurses code was developed under GNU/Linux."

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