3 ms·
>Of course the tradeoff is loss of scrollback. That could always be buffered on the server side.
by btym 9y ago
>Of course the tradeoff is loss of scrollback.
That could always be buffered on the server side.
- joombaga 9y agoIf you use a terminal multiplexer (screen or tmux) it effectively is.
- geofft 9y agoYou won't get native scrollback with server-side buffering. Precisely because it's scrollback that's off the screen, there's no way to send ANSI escape sequences to edit it after the fact; it has to actually be written to the screen and then scrolled off. So you can't really do anything where you transmit the current screen at higher priority and scrollback at lower priority. (Unless you want to do something where mosh will write out scrollback when it receives it and then write the actual current screen below it, but I bet that will cause a ton of flicker.) You can probably do some things to heuristically improve scrollback, e.g., telling the terminal sync thing to sync 1000 lines of scrollback if the connection seems good and only the current screen if it seems poor. You won't get reliable scrollback but maybe it's good enough.