LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Problem with scrolling in Xterm (https://www.linuxquestions.org/questions/linux-software-2/problem-with-scrolling-in-xterm-4175457724/)

TobiSGD 04-10-2013 04:59 PM

Problem with scrolling in Xterm
 
Due to incompatibilities between w3mimgdisplay and Roxterm I am again on the try to switch to Xterm.
Works so far, but scrolling is a major show-stopper.

To enable scrolling using the mouse-wheel in programs like Vim I had to add these lines to my .Xresources file:
Code:

xterm*vt100.translations: #override\n\                                       
<Btn4Down>,<Btn4Up>: string("^[[A")\n\                                       
<Btn5Down>,<Btn5Up>: string("^[[B")\n\

Using that scrolling worked fine in Vim, but instead of scrolling in the plain Xterm it now scrolls through the command history, totally unwanted behavior. Shift+PgUp/PgDown keys have no function in that mode.

Doing a web-search revealed that this should work, so i changed the config file:
Code:

xterm*vt100.translations: #override\n\                                       
<Btn4Down>,<Btn4Up>: string("^P")\n\                                         
<Btn5Down>,<Btn5Up>: string("^N")\n\

Works also (although a bit awkward) in Vim, but in plain Xterm I only get the ^N and ^P characters when using the mouse-wheel.

So I wanted to start that over and removed both, with the end result that I now for a millisecond can see Xterm scrolling up when moving the wheel in that direction, but immediately followed by the output of ^P characters, which of course caused an scroll-down to the last line. At least using Shift+PgUp/PgDown keys work in that mode, but having mouse scrolling would be really nice.

I really could need some help from Xterm users with the proper configuration of scrolling using the mouse-wheel without scrolling through command history.

Thanks in advance.

dickey 04-10-2013 08:10 PM

alternateScroll feature
 
http://invisible-island.net/xterm/xt...html#xterm_289

TobiSGD 04-10-2013 09:12 PM

Tried to enable that, sadly doesn't change anything.

EDIT: Nevermind, looking at the Changelog you linked to made me looking for which version of Xterm actually is provided with Slackware 14.0 and, surprise, it was 281, while the alternateScroll feature was introduced with 282. I upgraded to the current 291 and now it works as it should.

Thanks for your help.


All times are GMT -5. The time now is 07:10 PM.