martanne / dvtm

dvtm brings the concept of tiling window management, popularized by X11-window managers like dwm to the console. As a console window manager it tries to make it easy to work with multiple console based programs.
MIT License
848 stars 105 forks source link

Shift-PageUp #56

Closed antoyo closed 7 years ago

antoyo commented 7 years ago

The doc says that Shift-PageUp should scroll back but it does not work. The shortcut Mod-PageUp works thought. Could you please add the missing shortcut. Thanks.

martanne commented 7 years ago

The "shortcut" is already there. For example it works with st which doesn't provide an internal scroll back buffer and as a result doesn't intercept Shift-PageUp keys.

The problem is likely that the environment from which you run dvtm (e.g. a X terminal emulator) consumes the Shift-PageUp keys.

Maybe MOD+e (copy mode using your editor) or MOD+E (scroll back history using your pager) is a usable alternative.

antoyo commented 7 years ago

That was indeed an issue with the terminal, alacritty. I added these lines to the config file:

  - { key: PageUp,   mods: Shift,   chars: "\x1b[5;2~"                   }
  - { key: PageDown, mods: Shift,   chars: "\x1b[6;2~"                   }

and now it works.