Mosh: A way to trigger a mosh-client repaint without sending ^L to the remote process

Created on 12 Jan 2013  路  2Comments  路  Source: mobile-shell/mosh

Mosh client got into a slightly inconsistent state and I wanted the local process to repaint the screen. The way to do that was to hit ^L, which also sends ^L to the remote process. In this case my remote process responds to ^L not with a simple repaint but by clearing the screen, and that was undesirable.

It would be nice if some keybinding like ^^^L would do a local repaint and not send anything to the remote process.

feature

Most helpful comment

i get this problem way to frequently. very often when switching terminals in tmux or when scrolling.
in particular when the new output does not write full lines, tose lines are not cleared.

i wonder if mosh tries to hard to optimize away unchanged areas.

a refresh that doesn't go to the server would be helpful, but i wonder if a forced resync could be done say every 10 seconds to ensure consistency.

greetings, eMBee.

All 2 comments

I've noticed that on long-running sessions (multi-day) mosh often gets into weird states e.g. the client-side terminal stops showing any updates altogether (even though I see UDP traffic on both ends) or, less frequently, weird artifacts start to appear in vim that even ^L doesn't clear, I have to ^Z out of vim and fg back into it. So having a key combo like, say, Ctrl-^ L to force the mosh client to resync its entire state with the server would be great.

i get this problem way to frequently. very often when switching terminals in tmux or when scrolling.
in particular when the new output does not write full lines, tose lines are not cleared.

i wonder if mosh tries to hard to optimize away unchanged areas.

a refresh that doesn't go to the server would be helpful, but i wonder if a forced resync could be done say every 10 seconds to ensure consistency.

greetings, eMBee.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jiyinyiyong picture jiyinyiyong  路  7Comments

skrat picture skrat  路  4Comments

lilyball picture lilyball  路  7Comments

franzf picture franzf  路  5Comments

xapple picture xapple  路  7Comments