How do you check if one of the Function keys have been pressed? Do they produce a character so I can use scanf or some other function to get it into a char variable to see if it's been pressed? :confused:
THX alot!
CKarl
Printable View
How do you check if one of the Function keys have been pressed? Do they produce a character so I can use scanf or some other function to get it into a char variable to see if it's been pressed? :confused:
THX alot!
CKarl
I assume since you are using scanf, you mean in a dos program. You have to use windows.h, but you can test to see if this function returns true, and if it does the key is pressed. It is:
GetKeyState(VK_F1);
It doesn't make a character to scanf so you will have to test the key instead. I hope it works in dos.
I'm useing Linux to program on and I'm going to port it to another OS. How do that in Linux?
THX :)
Where are some good tutorials on the curses libary? (for later use of curses)
Google.Quote:
Originally posted by Budgiekarl
THX :)
Where are some good tutorials on the curses libary? (for later use of curses)
Quzah.