Questions tagged [input]
329 questions
83
votes
2 answers
Clear / erase a mistyped invisible password on a shell / terminal in Linux
One thing that annoys me using Linux's terminal is when I have to type a invisble password, like when you run ssh. Sometimes I mistype one or more letters and then I have to press backspace key a few times to make sure that I erased everything to…
StackUnder
- 955
- 1
- 8
- 9
59
votes
5 answers
How to send keystrokes (F5) from terminal to a GUI program?
I'm using a Raspberry Pi in combination with Chromium (kiosk mode) to show up some stats. The Pi doesn't have a connected keyboard so I searched for a solution to send keystrokes from the terminal to the Chromium (tab) process. Normal input does…
burnersk
- 748
- 1
- 7
- 9
36
votes
2 answers
Record every keystroke and store in a file
I need to record every keystroke and store in a file in the user directory ~, when using my account, I am not sudoer and I cannot install programs (like logKeys) in any way. How could I do so using terminal?
NOTE: This question it's not a duplicate…
Mitro
- 1,091
- 6
- 22
- 37
34
votes
1 answer
SSH causes while loop to stop
I have finally managed to boil down a problem I have been struggling with for a few weeks. I use SSH with "authorized keys" to run commands remotely. All is fine except when I do it in a while loop. The loop terminates after completing any…
Johan
- 4,088
- 2
- 23
- 30
32
votes
2 answers
How do mouse events work in linux?
This is mostly out of curiosity, I'm trying to understand how event handling works
on a low level, so please don't reference me to a software that'll do it for me.
If for example I want to write a program in C/C++ that reacts to mouse clicks,
I…
fiftyeight
- 423
- 1
- 4
- 5
29
votes
8 answers
Disable Keyboard & Mouse input on unix (under X)
How can one programmatically "freeze" the Keyboard & Mouse temporarily, so that no one could mess with the system?
There are several possibilities where this is useful. For instance, I have a laptop and I want to make sure no one uses it while I…
Philomath
- 2,827
- 1
- 22
- 21
28
votes
3 answers
Earphone remote in sound jack as X input
I have got new earphones, the AKG K318's to be exact and they have one of those remotes. On a smartphone, such as an Android phone or iPhone, the buttons map to actions on the music player such as play/pause, volume up/down, skip, previous, you get…
jonallard
- 1,596
- 4
- 14
- 14
27
votes
2 answers
What does CTRL+4 (and CTRL+\) do in bash?
I just found out by accident that CTRL + 4 closes programs reading stdin input from the command-line.
This is how it looks when I type CTRL + 4 or CTRL + / into programs reading stdin
$ cat
wefwef
wefwef
^\Quit
$ bc
bc 1.06.95
Copyright…
wefwefa3
- 1,345
- 5
- 15
- 27
27
votes
4 answers
How to inject keystrokes via a shell script?
I'm trying to inject keystrokes into the input daemon so as to simulate typing from a Bash script. Is this possible, and if so, how can I make it happen?
Naftuli Kay
- 38,686
- 85
- 220
- 311
25
votes
8 answers
What's the best way to actually "type" special UTF-8 chars?
Everything on my system (that needs it) supports UTF-8 just fine.
That's all nice when you want output...
But what if you want easy input ?
At the moment the only non-ASCII chars I can easily type are chars like é by using AtlGr.But for chars like ₂…
Garo
- 2,023
- 9
- 15
23
votes
2 answers
How to debug the input from an input-device (/dev/input/event*)
I have a IR receiver that is using the imon-driver and I would like to get it working with the kernel. Right now half of the keys on the remote (image) works, but an all important think like the numeric keys doesn't!
The weird think is that the…
LassePoulsen
- 407
- 1
- 4
- 10
22
votes
1 answer
Is it possible to send input to a tmux session without connecting to it?
Is there any command that I can use to send input or commands to a given tmux session / pane without connecting to it?
It's for unattended access,
I've a console application running on a tmux session. I want to restart it when a deploy (using…
Arnold Roa
- 369
- 1
- 3
- 7
19
votes
2 answers
bash script to detect and record mouse movements?
I need to be able to record the mouse movements every so often (every .2 of a second for example) and have them in a coordinate representation instead of a diff.
I found the following script:
#!/bin/bash
while :
do
cat /dev/input/mice | read -n…
anonymous
- 637
- 3
- 9
- 14
16
votes
6 answers
Why does "cat ttyUSB0" not produce output?
I connected an infrared receiver to a USB port ... (the last line of dmesg tells device file)
$ dmesg
[10496.596063] usb 7-2: new full-speed USB device number 2 using uhci_hcd
[10496.751112] usb 7-2: New USB device found, idVendor=0df7,…
nlognfan
- 161
- 1
- 1
- 3
14
votes
1 answer
Command line utility to retrieve password, that has no echo back
Bash builtin read command doesn't seem to support it, now I need to let user input a password while no echo should be displayed, what tool can I use?
daisy
- 53,527
- 78
- 236
- 383