New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Don't clear screen on mosh connection #123
Comments
Unfortunately we need to know what's in every cell of the screen for mosh to work (just like GNU screen and tmux), so we do have to initialize the terminal to a known state on startup. (And there's no way to sniff out what's already there...) Sorry! |
Bummer. I wonder if there's a workaround. Would it work to just echo |
Possibly -- you might try that yourself now with a --client= argument to Cheers,
|
Good call! Works beautifully. For future spelunkers, here's a little script that works: #!/bin/bash
for f in `seq 1 $LINES`; do echo; done
exec mosh-client $@ |
Not all shells set LINES automatically. Better is this:
|
Feature request: It'd be nice if the mosh client didn't clear the screen when establishing a connection, or if there was at least an option to disable that behavior. Frequently there's useful context up there I want to have available once I've connected.
Thanks for an awesome tool. :)
The text was updated successfully, but these errors were encountered: