stty: Unterschied zwischen den Versionen

Aus Mikiwiki
Wechseln zu: Navigation, Suche
(New page: Der Shell-Befehl <b>stty</b> setzt die Terminalparameter für das aktuelle Gerät oder zeigt sie an. == Verwendung == Backspace-Taste als Delete-Taste definieren. $ <b>stty erase $...)
 
 
(Eine dazwischenliegende Version desselben Benutzers wird nicht angezeigt)
Zeile 13: Zeile 13:
 
  $ <b>stty erase ^?</b>
 
  $ <b>stty erase ^?</b>
  
Unter anderem wird hier angezeigt, dass CTRL+C+ ein Programm abbricht ("intr = ^C").
+
Unter anderem wird hier angezeigt, dass CTRL+C ein Programm abbricht ("intr = ^C").
  
 
  $ <b>stty -a</b>
 
  $ <b>stty -a</b>
<pre>
+
speed 38400 baud; rows 54; columns 157; line = 0;
speed 38400 baud; rows 57; columns 155; line = 0;
+
intr = ^C; quit = ^\; erase = ^?; kill = ^U; eof = ^D; eol = M-^?; eol2 = M-^?; swtch = M-^?; start = ^Q; stop = ^S; susp = ^Z; rprnt = ^R; werase = ^W; lnext = ^V; flush = ^O; min = 1; time = 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;
+
-parenb -parodd cs8 hupcl -cstopb cread -clocal -crtscts
flush = ^O; min = 1; time = 0;
+
-ignbrk brkint -ignpar -parmrk -inpck -istrip -inlcr -igncr icrnl ixon -ixoff -iuclc ixany imaxbel iutf8
-parenb -parodd cs8 -hupcl -cstopb cread -clocal -crtscts
+
opost -olcuc -ocrnl onlcr -onocr -onlret -ofill -ofdel nl0 cr0 tab0 bs0 vt0 ff0
-ignbrk -brkint -ignpar -parmrk -inpck -istrip -inlcr -igncr icrnl -ixon -ixoff -iuclc -ixany -imaxbel -iutf8
+
isig icanon iexten echo echoe echok -echonl -noflsh -xcase -tostop -echoprt echoctl echoke
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
 
</pre>
 
  
 
Setzen von intr auf "CTRL+V".
 
Setzen von intr auf "CTRL+V".

Aktuelle Version vom 14. Januar 2009, 22:21 Uhr

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 54; columns 157; line = 0;
intr = ^C; quit = ^\; erase = ^?; kill = ^U; eof = ^D; eol = M-^?; eol2 = M-^?; swtch = M-^?; 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