Questions tagged [stty]

23 questions
36
votes
2 answers

How do I restore input echoing in the terminal?

Sometimes when a script gets killed at a password prompt, I can no longer see my input being echoed in the terminal. That is, normally at a terminal, I see this: $ _ $ foobar_ But in this case, I don't see what I've…
7
votes
1 answer

Super Key notation for stty

Trying to swap the Ctrl and Super keys around on a ubuntu box. Have managed to swap Super and Ctrl around using xmodmap. Now i just need to change the stty intr to be Super_L + C I can't for the life of me find the notation for the super key. (For…
5
votes
2 answers

Ruby commands are turning off tty echo

After running Ruby scripts, almost 100% of the time, the bash command line will appear to be inactive, while in fact it's silently accepting my keystrokes without showing them to me. This has happened with multiple versions of Ruby, through multiple…
Paul Roub
  • 277
4
votes
2 answers

Bash command substitution not working as expected

I'd like to view the last few lines of a file, but I want the columns aligned. Basically, I want to disable wordwrap. This is straightforward with: tail $FILE | cut -c -80 But I'm trying to generalize my script for other users, and I'd like to cut…
3
votes
0 answers

Make stty setting permanent

I tried to setup raw serial communication over ttyusb0 and used stty to change baud rate and raw mode. Those settings were successful and it was visible after I checked ttyUSB0 again, so after stty -F /dev/ttyUSB0 9600 raw cs8 -cstopb -parenb…
Laza
  • 31
2
votes
0 answers

How to suppress "stty: standard input: Inappropriate ioctl for device" in Jenkins console

I use PHPUnit with Jenkins. PHPUnit outputs many "stty: standard input: Inappropriate ioctl for device." like this [***] $ /bin/sh -xe /tmp/jenkins3872195701082406677.sh  + vendor/bin/phpunit tests/ PHPUnit 5.7.22 by Sebastian Bergmann and…
2
votes
2 answers

What is the discard option in `stty -a`? It uses `^O`

In stty -a, there's an option for discard = ^0. I've googled around, and the closest documentation I get is from: http://www.tldp.org/HOWTO/Text-Terminal-HOWTO-17.html which says ^O flush (or discard). Not yet implemented in Linux (but proposed).…
2
votes
1 answer

Receiving data from Serial Port

I want to receive data from RS232 Serial port to my terminal and with a directive to a file. It should be pretty straight forward. cat /dev/ttyS0 cat /dev/ttyS0 > file.txt Before that I've configured the parameters to match that of the…
1
vote
3 answers

Why does my backspace key keep being unbound from erase?

Every 5 to 20 minutes I need to retype stty erase ^H in the console because my backspace key randomly starts printing ^H instead of deleting characters. This is happening in git bash on a lenovo T410 Any help would be appreciated this is pretty…
vicg
  • 61
1
vote
0 answers

Ctrl key not detected in Terminal

I have a problem with my Mac Terminal. It is no longer able to detect the ctrl key, so I can't use anymore shortcuts like ctrl+C to stop a running task, because when I do the terminal echoes only the "c" character. I tried with stty -a and the intr…
1
vote
0 answers

Terminal without echo

In the terminal on Solaris 5.9 (ksh), I don't see the characters when typing. I can see the input only after the return key is pressed. I checked terminal settings with stty -a it shows: echo echoe echok -echonl -noflsh -echoprt echoctl…
rook
  • 213
1
vote
0 answers

In Debian 11 docker container, I cannot type lowercase S when I switch to bash from zsh

When I connect to my Docker container with Debian 11 via ssh, I have it set up such that zsh is the main shell. When I switch to bash (by typing bash) I lose the ability to type the lowercase letter s (no such problem with any other letter, lower or…
orion3
  • 722
1
vote
1 answer

How to permanently change Ctrl + C to Ctrl + K in CentOS 7?

I try to use this stty intr ^K in order to change Ctrl + C to Ctrl + K in CentOS 7. But when I restart my server. It resets to default again. How can I change it permanently from Ctrl + C to Ctrl + K in CentOS 7 ?
Leo
  • 13
1
vote
0 answers

How to modify the behavior of the commands that delete "words" to the left

I've recently tried switching from being a long time tcsh user to bash and I was lamenting the extra key tapping for deleting "words" to the left, so I've been looking into modifying the behaviors in bash to make it more like tcsh so that I don't…
hepcat72
  • 155
  • 7
1
vote
2 answers

UART baudrate is configurable by `screen` but not by `stty`

I have a USB to serial adapter, based on CH340G chip. It is connected to a device which periodically sends a string at 9600 baud. However, I seem to be able to receive the data regardless of how I configure the UART with stty (version 8.13): # stty…
1
2