Live data from Hacker News

Show HN: tmux2html - Render full tmux windows or individual panes as HTML

github.com

1–10 of 30 posts

Re: Show HN: tmux2html - Render full tmux windows or individual panes as HTML

#3
post #2

Do you have an example?

The examples are linked on the github page. This was something I had a tiny internal debate about. This thing renders HTML, but I wanted something visual on the README. But, that would require a screenshot...of the rendered HTML page. I don't know why, but that was very silly to me. If it's a screenshot, who is to say that I didn't just take a screen shot of my terminal?

I posted this on /r/coolgithubprojects and one of the comments was someone thought that the linked examples were screenshots until they selected the text.

In any case I'll post a separate comment with the linked examples.

Re: Show HN: tmux2html - Render full tmux windows or individual panes as HTML

#4
Example rendered sessions. Warning: The animated examples might not be impressive on low performance devices, and they may drain your battery if you leave them opened.

Color [disk: 135KB, gzip: 17KB]: https://share.esdf.io/FGlV4sufpt/color.html

Single Pane [disk: 65KB, gzip: 6KB]: https://share.esdf.io/saRkuNriJt/single.html

Full Window (Big) [disk: 134KB, gzip: 11KB]: https://share.esdf.io/h5lGMPdcZF/full.html

Animated [disk: 638KB, gzip: 262KB]: https://share.esdf.io/3qdZm2szkN/animated.html

Partially Animated (Big) [disk: 192KB, gzip: 79KB]: https://share.esdf.io/EJHQXoIQDT/partial-animated.html (Only some panes are animating)

Re: Show HN: tmux2html - Render full tmux windows or individual panes as HTML

#5
Whoa, that's amazing.

I don't use tmux, but I'm considering it just because of this super fancy tool here.

I would like to hear about interesting use cases. Is that when you want to show what you're doing to your boss? Or when you want to impress a novice programmer?

Re: Show HN: tmux2html - Render full tmux windows or individual panes as HTML

#6
post #5

Whoa, that's amazing. I don't use tmux, but I'm considering it just because of this super fancy tool here. I would like to hear about interesting use cases. Is that when you want to show what you're doing to your boss? Or when you want to impress a novice programmer?

Like I mentioned there, I use it to pester my friends :)

tmux is simply fantastic for keeping a session active. Not to mention you won't need to use multiple disjointed emulator windows to do something like keep tabs on a log file while you're working. You can even "full screen" a pane by pressing `Ctrl+b z`! I love being able to ssh into a server (or even my home computer) and simply resume where I left off, from any computer! My friend, let me also take a moment to tell you about Vim.... ;)

Back on topic: I think it would be good for anything where you want things to look almost exactly what's on your screen with high fidelity. Someone submitted an issue to have tmux2html continuously write to the same file that reloads itself. That could be used to have a not-so-realtime snapshot of a pane that's accessible from a browser. Perhaps, some weirdly draconian workplace that requires all employees to use tmux can routinely take a snapshot of all workstation sessions to make sure they aren't goofing off watching ASCII youtube[1]. Who knows!

1: http://annasagrera.com/on-ascii-youtube-and-letting-go/

Re: Show HN: tmux2html - Render full tmux windows or individual panes as HTML

#9
asciinema[1] does a similar thing but captures a whole terminal session. If somebody would add key input overlay support[2], it would actually be tremendously useful for demonstration purposes of interactive, mainly keyboard driven, terminal applications.

[1] https://asciinema.org/ [2] https://github.com/asciinema/asciinema/issues/105

Re: Show HN: tmux2html - Render full tmux windows or individual panes as HTML

#10
post #9

asciinema[1] does a similar thing but captures a whole terminal session. If somebody would add key input overlay support[2], it would actually be tremendously useful for demonstration purposes of interactive, mainly keyboard driven, terminal applications. [1] https://asciinema.org/ [2] https://github.com/asciinema/asciinema/issues/105

asciinema is a very useful. But, what I found unappealing about it was that I needed asciinema to play the recordings (is that still the case?). I wanted to be able to put the rendered session anywhere I wanted.

The example links are actually hosted on my server and were uploaded using Dropshare. Pretty easy peasy if I need to share something that I don't want public.

Post reply on HN