Live data from Hacker News

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

github.com

11–20 of 30 posts

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

#13
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 an…

Ok, you have convinced me. I'll try tmux! I do ssh at all times and do all my programming and other computer stuff in a VPS and remote computers, so this thing was made for me.

I've been using vim for a long time now, although I am still a neophyte.

And I have tried tmux some time ago, but couldn't get used to the keybindings that conflicted with those of vim (I'm against doing too much customization -- specially of keybindings --, because that will make me useless when using other people's computers). Is this a real problem or was it just something I did wrong?

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

#14

That is really cool! Could you use this to "livestream" a terminal session in real-time?

Not real-time, but yes, kind of. Add `--stream` to the command. Here's an example of it rendering every second: https://share.esdf.io/log.html

It is displaying the log file for my share.esdf.io domain (with IPs masked). I may take that link down in an hour or two if my puny server gets hammered.

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

#15

Complete the loop. Make the browser a tmux client...

I thought about it, but it would bring this outside of the scope of a weekend project :) Besides, gotty might be better suited for that task: https://github.com/yudai/gotty

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

#16
post #13

Earlier quoted context omitted.

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 an…

Ok, you have convinced me. I'll try tmux! I do ssh at all times and do all my programming and other computer stuff in a VPS and remote computers, so this thing was made for me. I've been using vim for a long time now, although I am still a neophyte. And I have tried tmux some time ago, but couldn't get used to the keybindings that conflicted with those of vim (I'm against doing too much customization -- specially of…

I use tmux as my primary "IDE" for everything. I personally use the backtiick (`) as my prefix, because ctrl-B conflicted with Emacs.

Now I use vim for everything, but I still use the same prefix because I've gotten used to it.

If you're stuck using someone else's computer, you can always pass through the prefix by hitting it twice...For example, if I ever need a backtick, I can just tap it two times.

https://github.com/Tombert/dotfiles/blob/master/tmux/.tmux.c...

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

#17
post #13

Earlier quoted context omitted.

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 an…

Ok, you have convinced me. I'll try tmux! I do ssh at all times and do all my programming and other computer stuff in a VPS and remote computers, so this thing was made for me. I've been using vim for a long time now, although I am still a neophyte. And I have tried tmux some time ago, but couldn't get used to the keybindings that conflicted with those of vim (I'm against doing too much customization -- specially of…

A convert! (Score!) To make navigating Vim and tmux splits more palatable, I highly recommend this plugin: https://github.com/christoomey/vim-tmux-navigator

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

#18
post #16
post #13

Earlier quoted context omitted.

Ok, you have convinced me. I'll try tmux! I do ssh at all times and do all my programming and other computer stuff in a VPS and remote computers, so this thing was made for me. I've been using vim for a long time now, although I am still a neophyte. And I have tried tmux some time ago, but couldn't get used to the keybindings that conflicted with those of vim (I'm against doing too much customization -- specially of…

I use tmux as my primary "IDE" for everything. I personally use the backtiick (`) as my prefix, because ctrl-B conflicted with Emacs. Now I use vim for everything, but I still use the same prefix because I've gotten used to it. If you're stuck using someone else's computer, you can always pass through the prefix by hitting it twice...For example, if I ever need a backtick, I can just tap it two times. https://github.…

The thing I love so far about Vim is no one argues about key bindings because no one is right. But, almost everyone agrees that the default leader key is awful. I imagine it's the same for the Emacs community.

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

#19
post #16

Earlier quoted context omitted.

I use tmux as my primary "IDE" for everything. I personally use the backtiick (`) as my prefix, because ctrl-B conflicted with Emacs. Now I use vim for everything, but I still use the same prefix because I've gotten used to it. If you're stuck using someone else's computer, you can always pass through the prefix by hitting it twice...For example, if I ever need a backtick, I can just tap it two times. https://github.…

The thing I love so far about Vim is no one argues about key bindings because no one is right. But, almost everyone agrees that the default leader key is awful. I imagine it's the same for the Emacs community.

I actually like the default bindings for both, but yes, everyone in the community seems to have a slightly fragmented opinion of them :D.

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

#20
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.

asciinema stores the raw program output including any terminal escape sequences in a JSON format[1] and then uses a javascript terminal emulation library to replay/recreate the terminal state in your browser. The player, made up of one Javascript and one CSS file, can be self hosted[2].

[1] https://github.com/asciinema/asciinema/blob/master/doc/ascii...

[2] http://blog.asciinema.org/post/self-hosting/

Post reply on HN