Trying to make C-S-PageUp and C-S-PageDown work in tmux but no success so far. Here are my config steps:

bind-key -n C-PageUp previous-window
bind-key -n C-PageDown next-window
bind-key -n C-S-PageUp swap-window -t -1
bind-key -n C-S-PageDown swap-window -t +1
set-window-option -g xterm-keys on

(C-PageUp and C-PageDown works).

When I Ctrl+Shift+PageDown, nothing happens. When I Ctrl+Shift+PageUp my terminal scrolls up before tmux is launched.

I have other config items, but they should not have an influence. I am using xterm on Ubuntun 16.04, I have the TERM env var set to xterm-256color.

  • These are handled by xterm itself (just as S-PageUp and S-PageDown without Ctrl) and don't generate any escape sequence at all. You should somehow try to configure your xterm not to handle these but rather send some escape sequence (I'm not an xterm guy, I don't know how to do this).
    – egmont
    Nov 15, 2016 at 21:40
  • try alacritty terminal emulator, i see that it doesnt bind to anything C-S-PageDown or C-S-PageUp
    – alexzander
    Jun 15, 2021 at 8:27


You must log in to answer this question.

Browse other questions tagged .