Questions tagged [stty]
"stty" command sets the options of terminal (tty).
109
questions
0
votes
1
answer
160
views
Customized Linux systems cannot use crtl+c to terminate ping commands?
I customized the root file system using Busybox, and its version is 1.36.1. I don't know why my device cannot be terminated by ctrl+c when typing ping an IP on the monitor keyboard. However, when I ...
0
votes
1
answer
172
views
How do I stop xterm from sending backspace when I select "Ctrl+h"
I want xterm to stop converting Ctrl+h to backspace. I use this key combination for other things, but the terminal captures Ctrl+h and send backspace every time. How can I disable this?
Note this is ...
0
votes
1
answer
81
views
Reasons for stty -tostop having no effect [duplicate]
I am trying to get a background process to print to the terminal. I haven't seen anything that otherwise indicates there is anything else to do besides stty -tostop. Am I missing something? Running ...
0
votes
1
answer
186
views
why doesn't the stty setting onlcr add a carriage return?
TLDR - I have onlcr configured in my terminal, but I don't see the \r getting added
If plug two FTDI serial converters together, and plug them both into my computer, I get two ports called /dev/...
1
vote
1
answer
223
views
Send and trap SIGTTIN SIGTTOU in foreground process?
From the description of signals (reference), it seems like SIGTTIN and SIGTTOU are sent to a process only if it is in background. Pressing Ctrl-s does stop printing in terminal, if such flow control ...
0
votes
1
answer
258
views
Why can bash not to follow stty settings?
From an answer to one my previous question I learned that shells (such as bash) have an ability not to follow the rules of terminal input processing set by stty(1). In particular, they can operate in ...
0
votes
1
answer
100
views
Why erase and kill characters do the same thing?
Among the stty -a settings on my machine there are such as erase = ^?; kill = ^U;. The man page reports that
erase CHAR
CHAR will erase the last character typed
kill CHAR
...
1
vote
0
answers
207
views
Enable tmux detached non-interactive session to run stty without "input/output error"
I'm trying to launch a MineCraft server at startup of an AWS EC2 instance running Amazon Linux.
For convenience, I used tmux to start a detached session, so I could ssh in to the box and connect to ...
0
votes
1
answer
261
views
Working with file descriptors in the (bash) shell?
I came across the following set of shell commands for reading and writing to serial ports, from this thread:
stty -speed 19200 < /dev/ttyS0 # sets the speed of the port
exec 99<>/dev/ttyS0 (...
0
votes
0
answers
21
views
How can I remap crtl-z? [duplicate]
I have several keys remapped successfully, but ctrl-z is being stubborn..
I can get these to work:
stty susp undef
bind '"\C-f": undo'
bind '"\C-Z": undo'
..but not:
bind '"\...
0
votes
1
answer
905
views
force stty -echo for all ssh users
I would like to disable TTY echoing for all users that are connecting via SSH.
The Linux command stty -echo does the trick, however instead of users having to execute this command on their TTY I would ...
1
vote
1
answer
573
views
strange 5-characters-sequence appear in PuTTY terminal with mouse click
While running some program (Configure), my terminal will be messed up. My typing is not shown. I can use "stty sane" to fix it but I notice that whenever I click my mouse on the terminal (I ...
1
vote
1
answer
753
views
How to disable Ctrl+S in terminal applications started from file manager or via shortcut?
I've successfully disabled Ctrl+S in terminal using instructions here.
However, if I launch a terminal programs (namely terminal vim) from "outside the terminal", Ctrl+S still freezes the ...
0
votes
1
answer
933
views
timeout stty hangs
I don't understand why the behavior of executing the following script:
$ cat z.sh
saved_stty=$(stty -g)
echo "saved_stty: ${saved_stty}"
stty "${saved_stty}"
$ ./z.sh
saved_stty: ...
2
votes
0
answers
52
views
Disabling user I/O during loop (temporarily)
I have a shell script that backs up my git repos that are all saved in one specific file. I wanted to add a cool "spinning load thingy" just for fun and that's pretty simple. The problem is ...