I want to copy text (for example) from the terminal, close the terminal, and then paste the text into (for example) a text editor.
This doesn’t work. As soon as I close the terminal, I can’t paste it by pressing ctrl + v, or by right clicking + clicking paste. However, it’s still in the thing in the panel (the thing next to volume, bluetooth, network, etc).
It is kind of weird, but certain “copy” functions don’t actually do anything until you paste. Check out this section from the clipboard entry on ArchWiki:
It is also important to realize that according to the selection protocols, nothing is copied until it is pasted. For example, if you select some word in a terminal window, close the terminal and then want to paste it somewhere else, it will not work because the terminal is gone and the text has not been copied anywhere. If you want the word to be preserved after closing terminal window, consider installing a clipboard manager.
KDE apps are notoriously not simple, so it does not surprise me that there is integrated clipboard management behavior when you are using Kate and Konsole.
If you want a more persistent clipboard functionality, you should install a clipboard manager.
I’m sorry if it was mentioned before, but pasting into a web browser could be pensive, but it’s for security reasons. Somebody could hijack your system through the clipboard and it has been done many times before on M$-oh-ess side of things.
CTRL+C and other familiar clipboard keys actually create control characters on any terminal emulator which is the reason why the SHIFT key has to be involved as well. It’s clumsy for somebody coming over from Windows but it is what it is. If you run, I think XFCE4 Terminal, visit the preferences and the last tab, it will tell you what’s going on: it’s not a good idea to change anything that does CONTROL key and letter. Probably Konsole is that great though…
I don’t recommend “clipboard managers” like Parcellite – I uninstall one of those as soon as I can. I accept only one that could be used inside an application, like one of my favorite programs, which cannot be brought outside that application.
(Despite what I’ve said here don’t install anything. I’m only trying to explain something. Why keystroke combinations could be weird sometimes, with a program like the terminal that is very necessary in Unix and Unix-like operating systems.)
So when you say “No, there isn’t” you mean “Yes, that’s exactly right, it’s called klipper.”
If the OP is using KDE then the Klipper clipboard manager should be in use, as @Kresimir has pointed out. To get Terminator to honor the clipboard buffer, right click on the terminal window and select Preferences → Profiles and tick the checkbox that says “copy on selection”.
The implication is clear, that due to “complexity” of KDE software there exists some special integrated clipboard manager specific to KDE software. No, that is false. Klipper is an universal clipboard manager, and Konsole and Kate are not special in the way they use Klipper.
Yes, your issue is not related to what I am experiencing in VirtualBox.
Explanation of the unrelated VirtualBox problem
It turns out that in VirtualBox, pressing Ctrl+Shift+C causes VirtualBox to suspend normal keyboard functionality until it receives a special key it understands. For example, pressing Ctrl+Shift+C followed by F toggles the guest window in and out of full-screen mode, just as if you had pressed (right) Ctrl+F. Consequently, in VirtualBox, pressing Ctrl+Shift+C to copy text in any terminal (Konsole is not unique to this problem) prevents the subsequent press of Ctrl+V to paste what you had copied. Tapping the (right) Ctrl key, as I suggested, terminates this wait-for-input mode and the paste operation succeeds.
So, I am baffled by your problem. @Kresimir is correct that your problem shouldn’t be happening on a bare metal installation, unless there is something we don’t yet understand about your installation or configuration.
Actually, I can replicate this behavior in Terminology.
Before closing Terminology, I paste the last thing I had copied in Terminology. However, after closing Terminology, I paste the last thing I had copied (from the previous application) before Terminology had been opened (even if I had copied several times within Terminology).
Interestingly, copying any number of times in Terminology never updates the clipboard history I see in the system tray. I see only items I had copied in other applications. However, even though I don’t see in the history what I last copied in Terminology, I can still paste into other applications what I last copied in Terminology, until I close Terminology.
On the other hand, if I use Konsole instead of Terminology, the clipboard history is updated each time I copy within Konsole, and I continue to paste whatever I had last copied in Konsole after I close Konsole, and the clipboard history in the system tray remains accurate at all times.
So I would use Konsole because it deals with the clipboard correctly—and because it’s a great terminal application.
Pardon my naiveness but I was responding to this part of the quotation.
Because the web browser has to be kept open, along with the text editor and any terminal emulator, it works. If the user has to fire it up before pasting something, it doesn’t. Or it works but not always.