[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Facilitate scrolling
From: |
Phil!Gregory |
Subject: |
Re: Facilitate scrolling |
Date: |
Sun, 18 Feb 2007 11:39:03 -0500 |
User-agent: |
Mutt/1.5.13 (2006-08-11) |
* address@hidden <address@hidden> [2007-02-18 12:32 +0100]:
> Would a patch integrating easier scrolling, say, by the Linux-style
> SHIFT+PG??, be welcome?
I do this with some keybindings. The only caveat is that you have a pause
on the first shift-pgup as screen displays the message that you've entered
copy mode, and you have to hit escape or something to exit copy mode when
you're done.
In my .Xresources:
! I use screen a lot, so its scrollback buffer is often more accurate than
! xterm's. Thus, I pass through Shift-PgUp and Shift-PgDn to allow screen to
! use them. I've hardcoded the escape sequences (rather than using insert())
! because I had to hardcode the sequences in my .screenrc (because there are
no
! termcap codes for shifted PgUp and PgDn).
XTerm.vt100.translations: #override \n\
Shift <Key>Prior:string(0x1b) string("[5;2~") \n\
Shift <Key>Next:string(0x1b) string("[6;2~")
In my .screenrc:
# Make shift-PgUp and shift-PgDn work like they do in xterm. (Note that this
# requires xterm to be configured to pass those keys through, and not try to
# act on them itself.)
bindkey "^[[5;2~" eval "copy" "stuff ^u"
bindkey -m "^[[5;2~" stuff ^u
bindkey -m "^[[6;2~" stuff ^d
Doing this for other terminals would require knowing their escape
sequences for Shift-PgUp and Shift-PgDn (and disabling their native
response to those keys, obviously).
--
...computer contrarian of the first order... / http://aperiodic.net/phil/
PGP: 026A27F2 print: D200 5BDB FC4B B24A 9248 9F7A 4322 2D22 026A 27F2
--- --
The flow chart is a most thoroughly oversold piece of program
documentation.
-- _The Mythical Man Month_, Fred Brooks
---- --- --