Skip to content

Instantly share code, notes, and snippets.

@TauPan
Created February 15, 2013 12:43
Show Gist options
  • Save TauPan/4960178 to your computer and use it in GitHub Desktop.
Save TauPan/4960178 to your computer and use it in GitHub Desktop.
Get the Shift-PGUP/PGDOWN keys to scroll in screen's copy mode
# Get the Shift-PGUP/PGDOWN keys to scroll in screen's copy mode
bindkey [5;2~ eval "copy" "stuff \002"
bindkey -m [5;2~ stuff \002
bindkey -m [6;2~ stuff \006
bindkey -m ^[[5~ stuff \002
bindkey -m ^[[6~ stuff \006
@TauPan
Copy link
Author

TauPan commented Feb 15, 2013

additionally, I have

bindkey -s '^[[5~' 'screen -X copy\n'

in my .zshrc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment