Add Copy-Paste Functionality to Xterm, Rxvt like Terminals

Xterm, Rxvt like terminals do not support the traditional Ctrl C Ctrl V kind of copy paste functionality. Does anybody need it? Well I guess not, because you can highlight text, and then use the middle-click to paste it wherever you want. However if anybody needs it, this is what you need to do. Go ahead and install the ttyecho tool from this post of mine. Continue reading

Enable Alt Key in Xterm

Normally, if you try the key sequence Alt+1 in xterm, it will output a special character. To enable the Alt key:

Add the following to the .inputrc file in your home directory. Create one if it doesn’t exist already.

set meta-flag on
set convert-meta off
set output-meta on

Add the following to the .Xdefaults file in your home directory.

XTerm*metaSendsEscape: true
XTerm*eightBitInput: false

Open xterm if its not already, and execute the following command in the xterm Window.

xrdb -load ~/.Xdefaults

Restart all xterm windows. The Alt key should work now.