5 ms·
As a current mosh user i'm interested but I don't know what "support native scrolling nor tmux control mode" means. Any insight?
by math0ne 7y ago
As a current mosh user i'm interested but I don't know what "support native scrolling nor tmux control mode" means. Any insight?
- dunkelheit 7y agoRun some command that outputs more than one page of text and try to scroll back in your terminal emulator. You won't see the remainder of the output, while with ordinary ssh and eternal terminal you will. tmux control mode is this: http://man7.org/linux/man-pages/man1/tmux.1.html#CONTROL_MODE http://man7.org/linux/man-pages/man1/tmux.1.html#CONTROL_MOD... It allows e.g. native tiling in ITerm.
- codetrotter 7y agoI am a current mosh user too. In mosh you can’t scroll backwards, due to how the implementation of mosh is made. See https://github.com/mobile-shell/mosh/issues/774 https://github.com/mobile-shell/mosh/issues/774 and https://github.com/mobile-shell/mosh/issues/122 https://github.com/mobile-shell/mosh/issues/122 This has annoyed me for a long time so I am definitely going to give ET a shot. As for the stuff about tmux I don’t know since I don’t use tmux.
- d21d3q 7y agoYou can scroll with tmux. Ctrl b and page up/down. Give it a try. Tmux is first thing I install on any machine.
- Kilenaitor 7y agomosh by default doesn't support native scrollback. The way mosh is implemented (by default at least) is to just paint the screen locally with the remote "view". If you try to scroll back in your terminal locally (literally scroll up with a mouse/trackpad), it will scroll up your local terminal instead of scrolling up in the remote view. So your scrollback is literally capped at the vertical height of your local terminal window. This is super annoying if you want to see long output of a previous command or even see what the output was of the command you ran five minutes ago. ET solves this by basically doing ssh under the hood. So you have real scrollback by default. It's REALLY nice and is one of the primary reasons I use ET. --- As far as tmux control mode, in essence, it allows you to control tmux via your native terminal commands. On iTerm for example, you can use the key command to vertically split the (iTerm) terminal and tmux will actually hijack that command it do it in tmux. So you can use your native terminal multiplexing commands instead of the tmux key commands. I only know of iTerm 2 that supports this functionality, just as a heads up.
- ignoramous 7y agoNot being able to scroll was a pain, but nothing that tmux or even output piped to less couldn't solve. It wasn't glorious, but it worked. That said, might be tempted to try ET just because scrolling through long winded outputs are a frequent thing.
- sjy 7y agoSmooth-scrolling back through a command that unexpectedly dumped 500 lines of output, using Alacritty and a big scrolling trackball with acceleration, is pretty glorious.
- math0ne 7y agoAwesome thanks! I'm still not sure I understand tmux control mode but I have always used mosh and tmux together so I guess I just never noticed.
- gnachman 7y agoThis is the best way to use iTerm2's tmux integration mode on a remote host. I wrote some guidance here: https://gitlab.com/gnachman/iterm2/wikis/tmux-Integration-Best-Practices#i-keep-having-to-reattach-because-my-ssh-connection-dies-when-my-ip-address-changes https://gitlab.com/gnachman/iterm2/wikis/tmux-Integration-Be...
- maratc 7y agoHey George, the wiki is good, as is the whole tmux/iTerm integration. You might want to add a section on reconnecting to ssh agent forwarding from Mac (the whole `eval $(tmux showenv -s SSH_AUTH_SOCK)` thing).