Hacker News new | ask | show | jobs
by perryizgr8 1984 days ago
I hate mosh because it nukes scrolling. I hate tmux because I just can't remember the keybindings. I've been using mosh+byobu since the keybindings are a bit easier for me. But I'd love regular ssh to be resilient like mosh, or maybe mosh can start supporting scrolling.
3 comments

I use mosh + screen, because you can tell screen to act like it has normal scrolling with a simple config and then the only keybinding you need to remember is disconnect.

    defscrollback 500000
    scrollback 500000
    termcapinfo xterm* ti@:te@
There you go, normal scrolling!
Thank you very much, I use screen rarely and the thought that screen can be configured has never crossed my brain.
Not much configuration, and slightly annoying that the config file is at $HOME/.screenrc instead of being patched to use an XDG location, but it's "good enough" for my use cases.
Doesn't seem to work for me. I use mosh to start the session, then screen to create a new screen. But this does not scroll using my mouse. I can scroll using Ctrl+A and then arrow keys. But that's not what I'd call normal scrolling.
Then your version of mosh is breaking on termcapinfo. I can't really help on your particular version, but that's not screen breaking. It has told mosh it supports scrolling with the mouse. Case of "works over here".
Thanks for the tip anyway. I'll have a place to start investigating the problem.
Mosh is designed to only synchronize the last screen of changes and will never support scrolling.

https://github.com/mobile-shell/mosh/issues/122#issuecomment...

http://web.mit.edu/keithw/www/Winstein-Balakrishnan-Mosh.pdf (Section 6)

I got around the `tmux` barrier by writing down my most useful commands on an index paper, cutting it into the smallest rectangle I could (and folding in half), and tucking it in the pocket of my phone's flipcase (or you could stick it inbetween your smartphone and its back-shell).

I'm pretty happy I got over that hurdle.