I am writing a Linux program in C, and I need to intercept certain keyboard strokes.

Using the input subsytem (read/write /dev/input/eventX), I can receive a keyboard stroke (using "read" functions) or simulate a keyboard stroke (using "write" function).

When using "read" function, I can capture the user keyboard strokes, but this event is propagated and I don't know how to consume it.

Edit
Report