Home

Awesome

tmux2html

tmux2html captures full tmux windows or individual panes then parses their contents into HTML in living color. The output can either be still snapshots, or animated sequences.

With a web server that uses gzip compression, the size over the network is negligible for reasonably sized windows or panes.

Examples

Some of these may be large in dimensions. You'll need to zoom out if you want to see all panes at once. These are not raster graphics!

If you decide to look at the telnet animations yourself and don't know how to exit, use Ctrl-] then type quit. For the Star Wars animation, press Ctrl-]<enter> to get the prompt.

Rationale

This was a weekend project I made for fun and I have no particular use for it beyond annoying my friends about how bad they should feel for not using tmux. I also thought it would be neat to have a render of my sessions that didn't result in an image using some crummy font on a headless server.

I suppose you can use cron to capture screens and display it on your website, or use it to create terminal snippets for your blog. You could also load a pane render in elinks within your coworker's session. The only limit is your imagination, my friend. :sparkles:

What people think of tmux2html

tmux2html 便利そう。

@nakamuray

aaaaoooooo

@l4utert

9:39:46 PM Jef Myers: what the fuck is tmux?

— Jef Myers

Requirements

Installation

pip install tmux2html

Usage

tmux2html 4 -o window_5_in_current_session.html
tmux2html .0 -o first_pane_in_current_window.html
tmux2html other:1.2 -o second_window_third_pane_in_other_session.html

Command Line Options

Limitations

Notes

To Do

Similar Projects

License