Bourne | Ash |  #!  | find | ARG_MAX | Shells | portability | permissions | UUOC | ancient | - | ../Various | HOME
"$@" | echo/printf | set -e | test | tty defs | tty chars | $() vs ) | IFS | using siginfo | nanosleep | line charset | locale


stty defaults on various unix flavours

The motivation for this page was curiosity and interest in historical correlations.

Find out stty defaults with

You might not notice unusual defaults if you are logged in remotely by ssh(1), but only with telnet.
sshd(8) logs you in differently and even tries to "export" your old settings. Not to mention shell profiles changing settings, in this concern.

In the following, "^X" means "<Ctrl-X>". See also an article in a.f.c, <62097@bbn.BBN.COM>, about a possible origin of the "^"-notation.

Also see an article from Christian Weisgerber providing some background about the BackSpace vs. Delete issue.

Various defaults:

OS INTR ERASE SUSP KILL LNEXT QUIT EOF cs8 istrip parenb
Arbitrary choice: ^C ^H ^Z ^U ^V ^\ ^D + + -
Version 7 [3] DEL # N/A @ N/A - ?
System III [4] DEL # N/A @ N/A - ?
3 BSD [5] DEL # N/A @ N/A - ?
4.3 BSD [6] DEL ? ? ?
4.4 BSD [7] DEL - +
HP-UX A.08.07-B.09.03 [2] DEL # ( ) @ N/A -
HP-UX B.10.10-B.11.22 [2] DEL # ( ) @ ( ) - +
SINIX V5.2 DEL N/A ^X N/A ^| - +
MUNIX 3.2 (SVR3.2) DEL ^B ^X N/A ^Y ^Z - +
FreeBSD 4.3 [1] DEL -
Linux 2.2.9 DEL -
NetBSD 1.5 DEL -
OpenBSD 2.9/3.1 DEL ? - +
SunOS 3.5, 4.1.4 DEL - +
SunOS 5.x DEL ^| - +
Unicos 9.0.2.2 DEL ^|
EP/IX 2.2.1AA DEL ^|
OpenServer 5.0.6 DEL ( ) -
IRIX 4.0.5 / 5.3 / 6.5 DEL
OSF1 V4.0, V5.1
Minix 3.1.1
AIX 3.2.5
AIX 4.3.2 +
[1] FreeBSD 4 provides also an ERASE2 capability ("^H")
[2] HP-UX uses ^Z for "SWTCH"
[3] <sys/tty.h>
[4] <termio.h>
[5] <sys/tty.h>
[6] <ttychars.h>
[7] <sys/ttydefs.h>

About this table:

Some notes:


2005-12-04 ... 2008-12-06