I regularly uses xterm for web browsing because of its image rendering property but the one thing which makes xterm difficult comparing to terminal is the copy/cut paste availability in terminal program. I have found this method and according to this i saved the below code in .Xdefaults
file in home directory
xterm -ls -xrm 'XTerm*selectToClipboard: true'&
After the implementation of this code I am able to select text in xterm but not able to copy or cut paste (using mouse or keyboard shortcuts ctrl+c etc) any text from or to the xterm.
Any idea what went wrong?
You can edit the
XTerm
file usingvim
ornano
(I usevim
):Add this:
Save and close with:
Open
xterm
:The above configuration does four things:
Select and copy text into
xterm
:Paste text into
xterm
by pressing Ctrl+Shift+V.Show the scrollbar.
Customize the font.
You shall not include that line in
.Xdefaults
. Thus shalt thou start the program.Or with
.Xdefaults
:Add this line:
and reload the configuration
Handling shortcuts in Xterm
In
Edit keyboard shortcuts
you can than set what you want. Obviously if some key combination is taken you have to clear that assignment first from current use in order to use it for your commands.