How do I scroll in tmux?
Hire the world's top talent on demand or became one of them at Toptal: https://topt.al/25cXVn
and get $2,000 discount on your first invoice
--------------------------------------------------
Take control of your privacy with Proton's trusted, Swiss-based, secure services.
Choose what you need and safeguard your digital life:
Mail: https://go.getproton.me/SH1CU
VPN: https://go.getproton.me/SH1DI
Password Manager: https://go.getproton.me/SH1DJ
Drive: https://go.getproton.me/SH1CT
Music by Eric Matyas
https://www.soundimage.org
Track title: Music Box Puzzles
--
Chapters
00:00 How Do I Scroll In Tmux?
00:19 Accepted Answer Score 2451
01:44 Answer 2 Score 190
01:56 Answer 3 Score 565
02:18 Answer 4 Score 25
02:24 Thank you
--
Full question
https://superuser.com/questions/209437/h...
--
Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...
--
Tags
#tmux
#avk47
ACCEPTED ANSWER
Score 2451
Ctrl-b then [ then you can use your normal navigation keys to scroll around (eg. Up Arrow or PgDn). Press q to quit scroll mode.
Alternatively you can press Ctrl-b PgUp to go directly into copy mode and scroll one page up (which is what it sounds like you will want most of the time)
In vi
mode (see below), you can also scroll the page up/down line by line using Shift-k and Shift-j (if you're already in scroll mode). Unshifted, the cursor moves instead of the page.
Excerpts from the man page:
tmux may be controlled from an attached client by using a key combination of a prefix key, ‘C-b’ (Ctrl-b) by default, followed by a command key.
The default command key bindings are:
[ Enter copy mode to copy text or view the history.
Function vi emacs
-------- -- -----
Half page down C-d M-Down
Half page up C-u M-Up
Next page C-f Page down
Previous page C-b Page up
Scroll down C-Down or C-e C-Down
Scroll up C-Up or C-y C-Up
Search again n n
Search again in reverse N N
Search backward ? C-r
Search forward / C-s
Plus a bunch more. Note that you have to press C-b
twice if you use that for page up since C-b
is bound as the command key. See the man page for information on prefacing a copy mode command with a repeat count.
You can set the key binding mode using Ctrl-b, then
:set-window-option mode-keys emacs
or vi
.
ANSWER 2
Score 565
Well, you should consider the proper way to set scrolling:
add in your ~/.tmux.conf
set -g mouse on #For tmux version 2.1 and up
or
set -g mode-mouse on #For tmux versions < 2.1
It worked for me in windows and panes. Now tmux is just perfect.
Practical tmux has more info on tmux.conf files.
ANSWER 3
Score 190
From my .tmux.conf:
# Sane scrolling
set -g terminal-overrides 'xterm*:smcup@:rmcup@'
This enables native xterm scrolling.
ANSWER 4
Score 25
In my case, just opt + UpArrow and opt + DownArrow on OSX.