![]() |
|
|
|
|
|||||||
| 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 11:57 AM |
| LCD codes on a P570 | johnf | AIX | 5 | 11-07-2006 07: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 02:33 PM |
| exit codes | donna carter | High Level Programming | 3 | 05-31-2001 06:35 PM |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
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 | ||
|
|
|
#2
|
||||
|
||||
|
Look for a program named 'xev' or one named 'showkey' as examples.
|
|
#3
|
|||
|
|||
|
PxT,
where can I find these examples. i searched around various directories in my harddisk. but no result. Anent |
|
#4
|
|||
|
|||
|
Hi!
If you are planning to implement the code in a C program, you can use the CURSES.H library, or the TERMIO.H library Rgds SHAIK |
|
#5
|
||||
|
||||
|
#6
|
|||
|
|||
|
Thanks for u all,
Can anyone get me a C code for the above operation. Thanks in Advance. Anent |
|
#7
|
|||
|
|||
|
#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 |