Questions tagged [stty]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
0answers
29 views

Make a tty 8 bit clean, using Python (ideal) or stty (acceptable)

I'm on a Debian 10.4 system, and I'm trying to talk to an RS232 peripheral using a Chipi-X USB<->RS232 cable. I heard that "stty -F /dev/ttyUSB0 raw" should make the tty 8 bit clean, ...
0
votes
1answer
83 views

Why might I not see stty key changes reflected in “stty -a”

I'm trying to change some key bindings in my console (Konsole). If I map intr to Ctrl-k, by running stty intr \^k I don't see the change reflected in stty -a speed 38400 baud; rows 46; columns 172;...
0
votes
1answer
694 views

stty in .profile causes: "stty: 'standard input': Inappropriat ioctl for device

I added into my .profile file the command stty werase ^H (The command makes it possible that i can delete a word with Ctrl + Return). But whenever i start my PC it prints the following error: ...
0
votes
1answer
240 views

agetty: unrecognized characters after login in buildroot (systemd)

I have a problem with agetty. when the login prompt gets the user name, then the password prompt or login shell shows unrecognized characters as below: [ OK ] Started Serial Getty on ttymxc4. [ OK ...
1
vote
1answer
71 views

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 + ...
1
vote
0answers
605 views

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/ ...
1
vote
0answers
67 views

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 ...
0
votes
0answers
87 views

screen and $TERM and misformatted vi

I'm ssh'ing from my Mac (Terminal.app) into a Linux box, where I need to run ckermit or screen over USB to have a console on a second Linux box. (There are no graphics on the second box, and I'm ...
0
votes
1answer
188 views

Periodic input to Windows gitbash terminal

My bash terminal is receiving a space (chr 32) immediately followed by a backspace (chr 8) every 5 seconds (almost exactly). The effects aren't noticeable when typing, as the added space is deleted ...
2
votes
1answer
920 views

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 ...
0
votes
1answer
2k views

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 ...
3
votes
0answers
888 views

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 -...
2
votes
1answer
553 views

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 ...
0
votes
1answer
1k views

How to run a virtual machine with no graphics card (VGA) configured in VirtualBox

I want to use the following feature of Linux (which one of my virtual machines): If no console device is specified, the first device found capable of acting as a system console will be used. At ...
2
votes
1answer
9k views

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 ...
1
vote
3answers
1k views

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 ...
1
vote
0answers
73 views

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 "...
15
votes
2answers
9k views

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: $ _ <after typing 'foobar':> $ ...
5
votes
2answers
651 views

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 ...
4
votes
2answers
1k views

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 ...
1
vote
0answers
774 views

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 ...
0
votes
1answer
3k views

stty doesn't change serial port speed in cygwin

This is involves cygwin running under Windows XP. I have a genuine serial port (COM1) on this machine. After booting up, a program I've written gets garbled responses when trying to communicate ...