Screen mistakingly catches Control-PgUp Control-PgDown
Bug #82708 reported by
Evan Carroll
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
screen (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: screen
Tested on xterm, and gnome-terminal. (any terminal using TERM=xterm should work) (gnome-terminal will require you to un-map these keys from the gnome-terminal tabs)
Run in xterm to eliminate the chance of deficiency in gnome-terminal's implementation of xterm.
Test case (requires edgy; or vim7):
1) run xterm
2) run screen
3) run `vim -p 1 2`
4) Test Control-PageUp, Control-PageDown (:he <Control-PageUp>)
try to use the Control-PageUp, Control-PageDown to alternate tabs. This will not work, because screen is capturing and mutating C-PgUp. On my machine they get translated into ';~5' and '~5'.
Run outside of screen and you will get expected behavior.
Changed in screen: | |
status: | Unconfirmed → Confirmed |
To post a comment you must log in.
While this is a bug in my eyes, some people have told me the ctrl codes for Ctrl+PgUp aren't standardized in VT-100 anyway. This wasn't minor for me, as I use vim all the time, and like to be able to change tabs in the edit mode. I've also supplied a fix, this should work for the majority, if not all, of the installs.
put this in .vimrc
:nmap <ESC>[5;5~ <C-PageUp>
:nmap <ESC>[6;5~ <C-PageDown>