![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| High Level Programming Post questions about C, C++, Java, SQL, and other programming languages here. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| help with return codes | ammu | Shell Programming and Scripting | 2 | 02-04-2008 10:57 AM |
| LCD codes on a P570 | johnf | AIX | 5 | 11-07-2006 06:00 PM |
| Return Codes | kris01752 | UNIX for Advanced & Expert Users | 3 | 09-25-2006 09:40 AM |
| Know any good codes? | fgjiu | UNIX for Advanced & Expert Users | 2 | 03-07-2006 01:33 PM |
| exit codes | donna carter | High Level Programming | 3 | 05-31-2001 06:35 PM |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
|||
|
Hi Experts,
I like to get the Key codes of the keys in the Keyboard while I press it. Its something like scan code. I want to know which key had been pressed. Can anyone fine me a solution for this using C. Regards Anent |
| Forum Sponsor | ||
|
|
|
|||
|
#include < stdio.h >
#include < curses.h > main() { int ch; initscr(); ch = getch(); endwin(); printf(" %d\n", ch); } If you are not familier with CURSES.H library, refer the man pages on the same to learn more of it. The above is the simplest of programs presented. Rgds SHAIK |
|||
| Google The UNIX and Linux Forums |