The task is to create an interlayer between the kernel and the user application (or some other option) to intercept keyboard events and further modify them. What can you tell? I do not know exactly where to start digging.

UPD: The task is to write a layer that will handle keyboard presses and, depending on its own internal state, send them to the active shell window.

  • I don’t know where exactly to start digging - for example, you can start by learning what you’ve already written: google: // linux + keylogger - aleksandr barakin
  • linux, I can be wrong, but you cannot modify the native messages from the keyboard in linux and the implementation of replacing keystrokes is not possible (reasonable cost) - goldstar_labs
  • If the "interception of events" refers to the processing of pressing the keys of the arrows and others like them, then the easiest way is to use the ncurses library. - Sergey
  • Thank. I partially read the keylogger. And how can I send the event of pressing the keyboard button to the active shell window? - Yuri Smith
  • Windows have something to do with it? you somehow decide what you need. // I partially familiarized myself with keylogger , i.e., you did not even enter such a request into a search engine. Well, good luck with your search for “that, I don’t know what.” - aleksandr barakin

0