Archive for August 24th, 2007

Working with keyboard in linux

How to check combination key?

taufanlubis@mylaptop:~$ stty -a

speed 38400 baud; rows 24; columns 80; line = 0;

intr = ^C; quit = ^\; erase = ^?; kill = ^U; eof = ^D; eol = <undef>;

eol2 = <undef>; swtch = <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


Change combination code

change <Erase> combination from ‘ctrl+?’ to be ‘ctrl+e’

<Erase> is used to delete 1 character to left.

taufanlubis@mylaptop:~$ stty erase ‘^e’



taufanlubis@mylaptop:~$ 12345678 then press ‘ctrl+e

taufanlubis@mylaptop:~$ 1234567 1 character is deleted.


<Kill> is used to delete all characters

taufanlubis@zyrex:~$ stty kill ‘^k’


taufanlubis@zyrex:~$ sudo apt-get instal then press ‘ctrl+k

taufanlubis@zyrex:~$ all characters are deleted.


Read Full Post »