mouse or keyboard interface in home menu of console app

Feb 19, 2013 at 4:12pm
how can i design an console app such that its menu's options are used by mouse or get highlighted and enterable by using arrow keys of keyboard???
Last edited on Feb 19, 2013 at 4:24pm
Feb 19, 2013 at 5:19pm
You can do it by not using the console.
Feb 19, 2013 at 9:12pm
That doesn't really answer the question.

Google around PDCurses (for Windows) and NCurses (for Mac and *nix)
That's the library you'll need to use.

You can do it with the Windows API directly, but you'll have an easier time just starting out with Curses.


Oh, and unless your requirements specifically require a console application, you really should look to making a GUI.

Hope this helps.
Feb 19, 2013 at 9:18pm
Make a GUI-based windowed program that emulates a text-based terminal.
Last edited on Feb 19, 2013 at 9:18pm
Feb 19, 2013 at 9:32pm
closed account (Dy7SLyTq)
well you dont need a gui... im writing a program right now in ncurses to use the console and it takes arrow keys and if i wanted to i could make it take mouse input
Topic archived. No new replies allowed.