osdir.com
mailing list archive F.A.Q. -since 2001!



Subject: Re: Facilitate scrolling - msg#00048

List: gnu.screen.user

Mail Archive Navigation:
by Date: Prev Next Date Index by Thread: Prev Next Thread Index

* leslie.polzer-hi6Y0CQ0nG0@xxxxxxxxxxxxxxxx
<leslie.polzer-hi6Y0CQ0nG0@xxxxxxxxxxxxxxxx> [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
---- --- --


Thread at a glance:

Previous Message by Date:

Re: Facilitate scrolling

On Feb 18, 07 12:32:52 +0100, leslie.polzer-hi6Y0CQ0nG0@xxxxxxxxxxxxxxxx wrote: > > The current scrolling interface to GNU Screen is not particularly simple > to use, and neither so to understand. The reason is that this mode is > mainly designed to move around and work with text, and not to scroll the > window, which is just a side effect. > > Would a patch integrating easier scrolling, say, by the Linux-style > SHIFT+PG??, be welcome? Couldn't that be done woth a keybinding? cheers, Jw. -- o \ Juergen Weigert unix-software __/ _=======.=======_ <V> | jw-n+aIp8eCc/CzQB+pC5nmwQ@xxxxxxxxxxxxxxxx creator __/ _---|____________\/ \ | 0179/2069677 __/ (____/ /\ (/) | ____________________________/ _/ \_ vim:set sw=2 wm=8

Next Message by Date:

Re: Facilitate scrolling

On Sun, Feb 18, 2007 at 04:23:11PM +0100, Juergen Weigert wrote: > On Feb 18, 07 12:32:52 +0100, leslie.polzer-hi6Y0CQ0nG0@xxxxxxxxxxxxxxxx > wrote: > > > Would a patch integrating easier scrolling, say, by the Linux-style > > SHIFT+PG??, be welcome? > > Couldn't that be done woth a keybinding? Hm... I'm not a Screen guru, so I can't answer this definitively. I'll see whether I can do that and tell you about it later. Leslie

Previous Message by Thread:

Re: Facilitate scrolling

Hallo all > > > Would a patch integrating easier scrolling, say, by the Linux-style > > > SHIFT+PG??, be welcome? > > Couldn't that be done woth a keybinding? > Hm... I'm not a Screen guru, so I can't answer this definitively. > I'll see whether I can do that and tell you about it later. I have the following in my .screenrc to activate this keys at least within X-Terminals (this case aterm). This should also work with other terminals. Got this tip a long time ago from the mailinglist. Should be adaptable to other terms...? # Damit shift-page-up und shift-page-down funktionieren (aterm) termcapinfo rxvt ti@:te@ -- cu --== Jerri ==-- Homepage: http://www.jerri.de/ ICQ: 54160208 Public PGP Key: http://www.jerri.de/jerris_public_key.asc signature.asc Description: Digital signature _______________________________________________ screen-users mailing list screen-users-mXXj517/zsQ@xxxxxxxxxxxxxxxx http://lists.gnu.org/mailman/listinfo/screen-users

Next Message by Thread:

Binding Control+Left/Right arrows?

How would I do if I wanted to bind Control+Left/Right arrow buttons to something?I've tried the following:  bind ^kr  bindkey ^kr  bindkey -k ^krThat without success. If I do ``bind ^kr'' I get an error message saying:   /home/dexter/.screenrc: bind: character, ^x, or (octal) \032 expected.But that's probably because, according to what I understood from the manual, I should use ``bindkey'' for modifying the input translation table (And isn't that what I'm doing... or at least what I want to do?). I've tried searching around both on IRC and on Google but I didn't find much. Any help would be appreciated. _______________________________________________ screen-users mailing list screen-users-mXXj517/zsQ@xxxxxxxxxxxxxxxx http://lists.gnu.org/mailman/listinfo/screen-users
blog comments powered by Disqus

Home | News | Sitemap | FAQ | advertise | OSDir is an Inevitable website. GBiz is too!