index

smooth scrolling in rxvt

how to keep reading while scrolling

This page contains patches to make scrolling inside rxvt comparable with smooth-scrolling in firefox. WARNING: it is incompatible with LCD screens :( Read why in this excellent article by Dave Marsh, about eyes & monitors.

Table of Contents

News!

Bugs:

If the rxvt window is not fully visible (partially obscured), wrong pixels will scroll. Particular case is described here. Hard to solve for now, i should avoid the trick when partially obscured.

History

While hacking on rxvt I got a diabolic idea: scroll by pixels, rather than by text lines. Simple to state, but it needed some preparation.

I knew the "difference" algorithm (pdf), but this needed a different one: heckel algorithm. I couldn't find free documentation, so I took some free implementation and read it till I understood, that "heckel" algo is about heuristics, it does not solve e well defined problem. It is used in ncurses,

I want this algo to find out a "scroll similarity" between 2 sequences of text.

But first a bit of background:

Formulation of the problem:

solution:

Response

as is the tradition on #rxvt-unicode I didn't get any positive feedback: see irc log

patches

FAQ:

Fine-scrolling is invoked only when the scroll step is less than 10 lines (up- or down-wards). I suggest setting they key-repeat low enough, so that you can just keep the key down and see the page flow. I use

xset r rate 190 10 
for the elinks window, while 190 40 for others. I have that tuning done automatically by my Sawfish (window manager)

Todo:

Demo for Sawfish users:

I changed a bit the slide-window function to use microsteps.

http://www.ruska.it/comp/activity/sawfish/wm/commands/slide-window.jl

but there has been a similar code in another sawfish extension! http://djdeath91.dyndns.org/~djdeath/animate-move.jl

Page started 8/1/2006