Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Menu in c : key up

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
HI everybody, I have to make for my finals a program that has in it a menu, that can be navigated by key up or down, does anybody know how I can tell c to do an action on key up/down ?

I'm working in visual c++
But the language should be C

PLease help
 
The keycodes for all the "extended" keys are on 16 bits, rather that 8 bits (char), as you might expect.

For keys up,down, home, end etc... if you want to use chars, you have to read from stdin 2 chars, first one is always 0, the second is the code for the key.

I don't know the codes by heart( 75,77 etc...) but you may try this.

[red]Nosferatu[/red]
We are what we eat...
There's no such thing as free meal...
once stated: methane@personal.ro
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top