On 2024-05-15, Dale <rdalek1...@gmail.com> wrote: > I thought that too. I highlighted some text in a Konsole and then > looked in the KDE clipboard, what I highlighted was not there. > > It wasn't there after I pasted it either. It goes to a clipboard > somewhere but it appears it only remembers one entry then forgets > when you highlight something else.
You're conflating to different but related things. In X, the selection and the clipboard are two different "places". When you click-drag to highlight text, that goes into the selection. In X, there are actually two different selections: the primary and the secondary. By default highlighted text goes into the primary selection. Middle-clicking shoves the contents of the primary selection into stdin for whatever window is selected. When you do "cut" or "copy" something, it goes into the clipboard. When you "paste" it comes from the clipboard. xclip can access (read or write) all three (primary selection, secondary selection, and clipboard). https://unix.stackexchange.com/questions/139191/whats-the-difference-between-primary-selection-and-clipboard-buffer https://superuser.com/questions/90257/what-is-the-difference-between-the-x-clipboards https://www.reddit.com/r/linux/comments/mgr0v/til_x11_has_three_clipboards/ -- Grant