tag:blogger.com,1999:blog-4983265076111025145.post3774406403973722960..comments2024-03-11T17:40:57.268+00:00Comments on Ben Clifford Technical Blog: cut paste pasteUnknownnoreply@blogger.comBlogger1125tag:blogger.com,1999:blog-4983265076111025145.post-78628691348622654932012-11-08T15:06:05.828+00:002012-11-08T15:06:05.828+00:00In Linux (and X generally) there are two buffers u...In Linux (and X generally) there are two buffers used for copying and pasting, not just one. The highlight/middle-button combo works with the buffer called PRIMARY. The ordinary Ctl-C/Ctl-V combo uses the buffer called CLIPBOARD. So you get weirdness when you copy into PRIMARY and paste from CLIPBOARD or vice-versa.<br /><br />You can use the program "autocutsel" to keep these two buffers automatically synced, so, for example, Ctl-C copies into CLIPBOARD, autocutsel copies it to PRIMARY as well, and you paste (from PRIMARY) the same content using the middle-mouse.<br /><br />I have had fun with the program "xsel" which allows you to manipulate either one of these buffers on the command line, for example piping stdout to the CLIPBOARD or directing one of the buffers to a program or text file. ("xclip" does similar things, I believe.)Unknownhttps://www.blogger.com/profile/09888004351073102467noreply@blogger.com