stty

Aus Mikiwiki
Wechseln zu: Navigation, Suche

Der Shell-Befehl stty setzt die Terminalparameter für das aktuelle Gerät oder zeigt sie an.

Inhaltsverzeichnis

Verwendung

Backspace-Taste als Delete-Taste definieren.

$ stty erase $(\^h)
$ stty erase ^h

Delete-Taste als Backspace-Taste definieren.

$ stty erase $(\^?)
$ stty erase ^?

Unter anderem wird hier angezeigt, dass CTRL+C ein Programm abbricht ("intr = ^C").

$ stty -a
speed 38400 baud; rows 57; columns 155; line = 0;
intr = ^C; quit = ^\; erase = ^?; kill = ^U; eof = ^D; eol = <undef>; eol2 = <undef>; start = ^Q; stop = ^S; susp = ^Z; rprnt = ^R; werase = ^W; lnext = ^V;
flush = ^O; min = 1; time = 0;
-parenb -parodd cs8 -hupcl -cstopb cread -clocal -crtscts
-ignbrk -brkint -ignpar -parmrk -inpck -istrip -inlcr -igncr icrnl -ixon -ixoff -iuclc -ixany -imaxbel -iutf8
opost -olcuc -ocrnl onlcr -onocr -onlret -ofill -ofdel nl0 cr0 tab0 bs0 vt0 ff0
isig icanon iexten echo echoe echok -echonl -noflsh -xcase -tostop -echoprt echoctl echoke

Setzen von intr auf "CTRL+V".

$ stty intr ^v

Weblinks