Skip to main content

Questions tagged [stty]

"stty" command sets the options of terminal (tty).

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 ...
Vimer's user avatar
  • 67
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 ...
Dave's user avatar
  • 621
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 ...
Sterling Butters's user avatar
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/...
Alex028502's user avatar
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 ...
codepoet's user avatar
  • 596
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 ...
Ilya Loskutov's user avatar
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 ...
Ilya Loskutov's user avatar
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 ...
ErikE's user avatar
  • 129
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 (...
First User's user avatar
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 '"\...
alchemy's user avatar
  • 637
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 ...
Evyatar Saias's user avatar
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 ...
some user's user avatar
  • 249
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 ...
demiaus's user avatar
  • 13
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: ...
Martin Raszyk's user avatar
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 ...
lua_python_java's user avatar

15 30 50 per page
1
2 3 4 5
8