Follow

@p I have to ask, how is this setup? What kind of console magic is this! 😱

· · Web · 1 · 0 · 1
@xyfdi The basic setup is https://github.com/tsl0922/ttyd and an ssh tunnel.

There was some fiddling required to make sure everyone sees the same thing: dvtm/dtach resize on connect, and that was annoying, like, it would reconfigure to fit the logical terminal width of the terminal emulator in the browser, this was awful. So, I set up a screen session called 'public' and then told ttyd to run `screen -x -r public`. Inside that screen is dtach, which is where I did the actual setup, dtach is running dvtm, and the individual windows in dvtm are all attached to windows in a screen session (except the IRC window, because I already have an IRC window so no need to share that with myself). So the path an individual character takes to get onto the screen is a program produces it, then it goes through screen, then dvtm, then dtach, then screen again, then ttyd, then it bounces through the websocket in the ssh tunnel out to nginx, which sends it to your browser, which uses xterm.js to display it.

@p This is a nice string of tools taped together, with an impressive result. I never would've figured that out.

Thanks! 🙂

@xyfdi Ha, I just tacked more shit on until it did what I wanted. It would be more impressive if it was simple.
Sign in to participate in the conversation
Game Liberty Mastodon

Mainly gaming/nerd instance for people who value free speech. Everyone is welcome.