in reply to Replacing keyboard functionality

/dev/null is a container of vast proportions. More than pseudo-code is required to prevent your request from being sent thither.

perl -le'print map{pack c,($-++?1:13)+ord}split//,ESEL'

Replies are listed 'Best First'.
Re^2: Replacing keyboard functionality
by beyond.wudge (Initiate) on Apr 23, 2018 at 02:29 UTC
    I see, so you can redirect output in Linux to a 'null' device, which then does not output it. But that would be the same as using a hook because I'd have to override the distro's default procedure for handling key presses.

    Also, it's OS specific. I'm sure that someone has needed to implement a higher level solution for work environments featuring a mix of Linux and non-Linux environments.