Re: Del, Backspace et ctrl-u

Page principale

Répondre à ce message
Auteur: serge rouveyrol
Date:  
À: Patrice KARATCHENTZEFF
CC: ML Guilde
Sujet: Re: Del, Backspace et ctrl-u
Le mercredi 10 mars 2004 a 02:38:58, Patrice KARATCHENTZEFF a ecrit :
> Jean-Marc Coursimault a écrit :
>
> [...]
>
> >La solution : taper Ctrl-u . Cela effacera tout ce que vous avez tapé
> >jusque là (tous les caractères à la fois). Cela marche sur tous les
> >systèmes Unix.
>
> C'est normal que cela fonctionne puisque c'est un raccourci Emacs ;-)
> ...


non, c'est interprete au niveau du driver :

voir
stty -a

speed 38400 baud; rows 46; columns 125; 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
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

man stty

 .....
 kill CHAR
              CHAR will erase the current line
 ...