owenthereal / upterm

Instant Terminal Sharing
https://upterm.dev
Apache License 2.0
809 stars 53 forks source link

Integration with zellij for "multiplayer" support? #230

Open bcspragu opened 5 months ago

bcspragu commented 5 months ago

Hello, and thanks for building upterm! I've set up a self-hosted instance and it works like a charm. My intention is to use it for pair programming-like use cases, and one idea I think would be fun is to pair this with a terminal multiplexer (like Zellij) for multiple cursor, multiple pane pair programming.

Zellij does support this, you basically create a session in one terminal and then (likely over SSH) connect to the same session in another terminal, which gets its own cursor.

This is cool, but requires allowing others to SSH into your machine, which one generally doesn't want to allow all the time. It seems like upterm is an obvious fit here, and I think there should be some magic incantation when sharing the ssh ... connection string that makes this work (assuming the host has Zellij), but I don't have a strong enough mental model of upterm (or Zellij, really) to figure out how to make them play nicely.

I'm also not sure if upterm's native 'mirroring' of the session would cause problems here. Mostly just looking to see if this is feasible and get some pointers. Thanks!

owenthereal commented 5 months ago

Zellij looks cool! I would be interested to learn what magic they do to allow multiple cursors.