Useful little script for screen: screendump
Dan Mahoney <[email protected]> Wed, 15 Apr 2026 15:31:10 -0700
| Newsgroups | gmane.comp.gnu.screen.user |
|---|---|
| Message-ID | <[email protected]> |
--Apple-Mail=_7422AB97-0C4C-49D6-9D55-3805577A3096 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii 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= --Apple-Mail=_7422AB97-0C4C-49D6-9D55-3805577A3096 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=us-ascii <html aria-label=3D"message body"><head><meta http-equiv=3D"content-type" = content=3D"text/html; charset=3Dus-ascii"></head><body = style=3D"overflow-wrap: break-word; -webkit-nbsp-mode: space; = line-break: after-white-space;">Hey folks,<div><br></div><div>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.</div><div><br></div><div>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.</div><div><br></div><div>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.</div><div><br></div><div>Thoughts = welcome.</div><div><br></div><div><a = href=3D"https://github.com/thegushi/screendump">https://github.com/thegush= i/screendump</a></div><div><br></div><div>-Dan</div></body></html>= --Apple-Mail=_7422AB97-0C4C-49D6-9D55-3805577A3096--