HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

intercept — Read raw input events from a specified input event device and redirect it to `stdout`. More informat

Submitted by: @import:tldr-pages··
0
Viewed 0 times
commandfromreadcliintercepteventsinputraw
linux

Problem

How to use the intercept command: Read raw input events from a specified input event device and redirect it to stdout. More information: <https://gitlab.com/interception/linux/tools/-/tree/master#intercept>.

Solution

intercept — Read raw input events from a specified input event device and redirect it to stdout. More information: <https://gitlab.com/interception/linux/tools/-/tree/master#intercept>.

Read and output raw input events from a given input device file (the system will not see any key presses):
sudo intercept -g {{/dev/input/eventX}}


Read and output raw input events from a given input device file (the system can see key presses and does not block other programs from reading them):
sudo intercept {{/dev/input/eventX}}

Code Snippets

Read and output raw input events from a given input device file (the system will not see any key presses)

sudo intercept -g {{/dev/input/eventX}}

Read and output raw input events from a given input device file (the system can see key presses and does not block other programs from reading them)

sudo intercept {{/dev/input/eventX}}

Context

tldr-pages: linux/intercept

Revisions (0)

No revisions yet.