Hey folks,

I just released to github some bash-nonsense that I found solves a problem in 
gnu screen: capturing long scrollback from a client machine (like a mac), where 
you can't copy/paste larger than the size of your local terminal window.

Basically, I now have a shell alias that captures the current screen (or 
another by number) and stuffs it into a local git repo, that you can sync down. 
 I've combined this with some window-titling magic so that the command you are 
running is also captured in the filename that's saved.

I've found this useful for sharing larger debugs with coworkers where 
previously the only option was to either: a) shrink my font-size to teeny-tiny 
so everything fit into a single copy-buffer or b) Use screen's own copy/paste 
utilities to save to a new local file, which I then had to scp off, so I could 
open it in a local text editor and then paste into a chat.

Thoughts welcome.

https://github.com/thegushi/screendump

-Dan

Reply via email to