I wanted to use CTRLSHIFTC and CTRLSHIFTV for Copy-and-Paste within XTerm and other applications, so I added
XTerm*vt100.translations: #override \ Shift Ctrl <Key> C: copy-selection(CLIPBOARD) \n\ Shift Ctrl <Key> V: insert-selection(CLIPBOARD)
~/.Xresources. Copy-and-Paste works fine, as long as I don't close XTerm. Then, all
CLIPBOARD content is lost. The same problem arises when using
where as soon as text gets selected, it is copied directly to
CLIPBOARD (instead of to
PRIMARY - or maybe to both?) but is only available as long as XTerm is running.
So, I read some more on
- How to make Shift+Insert paste selection after closing window with selection?
... but couldn't find a definitive answer. There seem to exist tools, which are able to sync
PRIMARY for example. Or make
CLIPBOARD content persistent. Or some kind of
CLIPBOARD history. But I'm not sure that this is what I'm looking for, here.
For example: If
CLIPBOARD content doesn't really leave the application and other programs have to "ask" the original application for the content of
CLIPBOARD, it makes sense that this would only be possible as long as this program is running. However, how does the
CLIPBOARD selected text from Firefox or Leafpad stay available, even though the program has been closed? How does Firefox/Leafpad do this? They don't use an external tool, do they?!