You are not logged in.

#1 2008-10-26 16:30:51

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

urxvt stop automatic scrolling when going back in the buffer [SOLVED]

It seems like I have everything set up properly, but I can't get urxvt to stop scrolling on tty output when I want it to. This is how I want it set up:

1) Scroll on tty when there is no interaction (default behavior)
2) Let me go back in the buffer to see something without scrolling taking over
3) Scroll on keypress if 2 is true

This is my entire Xdefaults for urxvt:

urxvt*background:           Black
urxvt*foreground:           White
urxvt*scrollBar:            true
urxvt*scrollBar_right:      true
urxvt*transpscrollbar:      true
urxvt*scrollBar_floating:   true
urxvt*saveLines:            10000
urxvt*scrollTtyOutput:      true
urxvt*scrollWithBuffer:     false
urxvt*scrollTtyKeypress:    true
urxvt*font:                 xft:DejaVu Sans Mono:pixelsize=12
urxvt*boldFont:             xft:DejaVu Sans Mono:bold:pixelsize=12
urxvt*perl-lib:             /usr/lib/urxvt/perl
urxvt*perl-ext-common:      default,matcher
urxvt*urlLauncher:          firefox

Setting scrollTtyOutput to false stops scrolling in general. I just want to be able to catch it if I see something suspicious at the beginning of compiling anything. I've had saveLines as much as 30000, but I don't know if that's either related or set high enough. After all, the venerable scroll test:

time seq -f 'teeeeeeeeeeeeeeeeeeeeeeeeeeeeeest %g' 1000000

only takes 3.7 seconds to complete.

As a side note, it takes vte based terminals 170 seconds to complete. urxvt is 45 times faster.

Last edited by skottish (2008-10-26 18:43:40)

Offline

#2 2008-10-26 18:20:06

kazuo
Member
From: São Paulo/Brazil
Registered: 2008-03-18
Posts: 413
Website

Re: urxvt stop automatic scrolling when going back in the buffer [SOLVED]

If I understand correctly what you like is:

URxvt*scrollTtyOutput:      false
URxvt*scrollWithBuffer:     true
URxvt*scrollTtyKeypress:    true

-Scroll when output come but not when you go back in to the buffer (with mouse scroll or shift pgup).
-Scroll back to the end on key press (on program stop running and prompt is back it go back to the end too).

Last edited by kazuo (2008-10-26 18:24:28)

Offline

#3 2008-10-26 18:44:25

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

Re: urxvt stop automatic scrolling when going back in the buffer [SOLVED]

kazuo wrote:

If I understand correctly what you like is:

URxvt*scrollTtyOutput:      false
URxvt*scrollWithBuffer:     true
URxvt*scrollTtyKeypress:    true

-Scroll when output come but not when you go back in to the buffer (with mouse scroll or shift pgup).
-Scroll back to the end on key press (on program stop running and prompt is back it go back to the end too).

With what you said and saveLines set to something really, really high (100000), it works. Thanks kazuo.

Last edited by skottish (2008-10-26 18:44:45)

Offline

Board footer

Powered by FluxBB