LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices



Reply
 
Search this Thread
Old 04-10-2013, 05:59 PM   #1
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Hanover, Germany
Distribution: Main: Gentoo Others: What fits the task
Posts: 15,653
Blog Entries: 2

Rep: Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095
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.
 
Old 04-10-2013, 09:10 PM   #2
dickey
Member
 
Registered: Jun 2009
Posts: 43

Rep: Reputation: 18
alternateScroll feature

http://invisible-island.net/xterm/xt...html#xterm_289
 
1 members found this post helpful.
Old 04-10-2013, 10:12 PM   #3
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Hanover, Germany
Distribution: Main: Gentoo Others: What fits the task
Posts: 15,653
Blog Entries: 2

Original Poster
Rep: Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095
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.

Last edited by TobiSGD; 04-10-2013 at 10:42 PM. Reason: found the cause for the problem
 
  


Reply

Tags
mouse, scrolling, vim, wheel, xterm


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
xterm tabs and scrolling faizlo Linux - Software 4 01-25-2010 04:33 AM
Slow rendering/scrolling in KDE/Gnome, fast(?) in xterm shristov Linux - Laptop and Netbook 3 04-09-2009 05:38 AM
slow scrolling on one machine, fast scrolling of same files on another rblampain Debian 5 01-22-2008 04:20 AM
Xterm command line scrolling dah328 Linux - General 2 04-27-2006 04:32 PM
Xterm & Mysql horozontal scrolling????????? demetri007 Linux - Software 5 08-19-2004 08:40 PM


All times are GMT -5. The time now is 10:47 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration