Repository navigation
[idea] subscribable pane output, for use over high-latency links #6176
wjwarner24
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
idea / problem
I have to connect from my Mac to a Linux dev box over a horrible connection (~37ms avg round trip, 25ms jitter) and use herdr there. Scrolling and typing both feel sluggish, because pane content is server-authoritative, every scroll and every keystroke's echo has to round-trip over the VPN. I tried plugins and [[keys.command]] bindings to fix this locally, but both run server-side, so they don't help. Mosh was my next idea, but I ran into some issues there, and I would really love a native client. I ended up writing my own local CLI that polls pane read and mirrors it into my own terminal so scrollback stays local, plus a "type locally, send on Enter" trick for typing. It works, but it's held together with guesses. I'm inferring cursor position from a reverse-video overlay in rendered text because there's no real cursor API, and I'm polling because pane output changes aren't subscribable.
requested change
Two things would make my workaround unnecessary:
why you want this
Right now I'm re-deriving terminal state by hand from periodic text snapshots, which is fragile and wastes CPU and bandwidth for data herdr already has internally. With real cursor data and a subscribable output stream, a thin local client could mirror a pane correctly instead of guessing, with near-zero added latency for both scrolling and typing. That's probably not just useful to me, anyone using herdr over a slow or flaky connection would hit the same wall.
All reactions