kbhit()
I'll rewrite my question here after posting it in the wrong place :( .
Is there an alternative for the function kbhit() as included in Borland's conio.h? Thanks again. |
Here's a complete example program that should get you there. Link it with the ncurses libs.
Code:
#include <stdio.h> |
That helped me alot. Thanks once more for your time
|
Great
This is a great post and has helped me loads.
How can I modify this to detect the arrow keys? Thanks Harry |
Use printf("you hit %0x02x\n",ch); instead of the original printf.
It will tell you (in hex) which data is received. Next you can analyse and modify the code to do what it needs to do. I seem to remember that (at least in DOS) you will get two bytes back when you hit the arrow keys, home etc. |
why not just generate interrupt 16h
|
All times are GMT -5. The time now is 08:20 AM. |