I wan't to be able to copy-paste the contents of my screen scrollback buffer into various browser text fields, usually when pasting an excerpt from a log file. One way that works well is the following:$ xsel -bi<CTRL-A ]> Enter<CTRL-d>Then simply pasting into the browser with CTRL-v. This works well for short excerpts of text. The problem is that these log excerpts often exceed 4 kilobytes, perhaps reaching 16k or 32k at a maximum. This causes CTRL-v to hang in the browser, perhaps due to the issues raised in the following two questions:http://unix.funmontage.com/questions/204815/terminal-does-not-accept-pasted-or-typed-lines-of-more-than-1024-characters#http://unix.funmontage.com/questions/131105/how-to-read-over-4k-input-without-new-lines-on-a-terminal I tried the solutions suggested in the answers to these questions to no avail. Is there any other way of getting around the 4k buffer limit?
Copy a large (over 4k) selection of text from the screen scrollback buffer into the system clipboard
terminal;gnu screen;clipboard
If you don't mind using a temporary file, you could do:C-a : writebuf filename$ xsel -bi < filename