capture key board events using C program

hi

This is mahesh

please can any one post source of 'c'. to capture key board events.

thank u

Basic UNIX is not windows - you have be in a windowing envrionment to get "events" from the keyboard.

curses is likely what you want.

Open the "two examples" section for code examples.