Skip to content

How do I enable Scroll on Mosh? #1933

Answered by iflowerml
iflowerml asked this question in Q&A
Discussion options

You must be logged in to vote

Mosh does not support scroll, due to it only dumping changes between screens, like video rendering protocols. This is the reason why Mosh is so fast. How can I add scroll to Mosh? Since Mosh cannot scroll we recommend pairing it with a terminal multiplexer like Tmux or Screen. These allow buffering for scrolling and you have access to your previous command outputs.
How to scroll on Tmux:

  • Ctrl+b then [ then you can use Arrows. Press q to quit scroll mode.
  • You can also press Ctrl-b+ PgUp to go straight to copy mode and scroll one page up.
    OR
  • To scroll with mouse wheel/ touchpad: In your ~/.tmux.conf file add: set -g mouse on. Save and exit, Then: tmux source your-tmux-file

How to scroll in

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by carloscabanero
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants