Search notes:

Shell command: stty

Change and print terminal device settings/options. stty stands for set tty.
Apparently, stty uses termios (3).

Show all settings

stty -a
Use -F to show the settings of another terminal:
sudo stty -a -F /dev/tty15

Specify the interactive attention character

stty intr specifies the interactive attention character. When a TTY finds this character in the input stream, it immediately sends a SIGINT signal to the corresponding process.
stty intr ^F

stty raw

On linux, a terminal will by default buffer input until Enter is pressed. This can be changed with
stty raw

stty size

stty returns the screen dimensions.
#!/bin/bash

stty_size=$(stty size)    # Returns two numbers: rows and columns

nofCols=${stty_size##* }  # delete up to last space from the left
nofRows=${stty_size%% *}  # delete from first space to the right

echo "Number of columns: $nofCols"
echo "Number of rows:    $nofRows"
Github repository shell-commands, path: /stty/size_screen-dimension

stty -ixon

Turn off flow control (xon/xoff).
This is necessary for example to to bind ctrl-q in readline.

See also

/dev/tty
tty
Shell commands

Index

Fatal error: Uncaught PDOException: SQLSTATE[HY000]: General error: 8 attempt to write a readonly database in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php:78 Stack trace: #0 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(78): PDOStatement->execute(Array) #1 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(30): insert_webrequest_('/notes/Linux/sh...', 1758200551, '216.73.216.150', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/Linux/shell/commands/stty(93): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78