You are not logged in.
I would like to be able to move the scrollbar position in Xterm by left clicking on (or above or below) it. The Arch Wiki (https://wiki.archlinux.org/index.php/Xterm#Scrollbar) says that this is how it should work, but when I left click anywhere on the scrollbar it only changes the mouse cursor to an up arrow; the text does not scroll regardless of the position of the scrollbar. BUT, upon highlighting the text after having tried to scroll, I can see that the text did in fact scroll, but the screen is not refreshing for some reason.
.Xresources (I do run xrdb after each change):
URxvt.font: xft:Commodore 64 Rounded:size=12
URxvt.letterSpace: -2
URxvt.internalBorder: 10px
URxvt.foreground: #00ffff
URxvt.background: #000000
URxvt.scrollBar: false
URxvt.perl-ext-common: default,tabbed
URxvt.tabbed.tabbar-fg:15
URxvt.tabbed.tabbar-bg: 0
URxvt.tabbed.tab-bg: 15
XTerm.vt100.scrollBar: true
XTerm..scrollbar.width: 20
XTerm..saveLines: 4096
*color0: #000000
*color1: #009999
*color2: #009999
*color3: #009999
*color4: #009999
*color5: #009999
*color6: #009999
*color7: #00ffff
*color8: #009999
*color9: #009999
*color10: #009999
*color11: #009999
*color12: #009999
*color13: #009999
*color14: #009999
*color15: #00ffff
! State: 'bg', 'fg', 'bgalt', 'hlbg', 'hlfg'
rofi.color-normal: #000000, #00ffff, #000000, #00ffff, #000000
rofi.color-urgent: #000000, #00ffff, #000000, #00ffff, #000000
rofi.color-active: #00ffff, #000000, #000000, #00ffff, #000000
! 'background', 'border', 'separator'
rofi.color-window: #000000, #00ffff, #001a1a
Xft.dpi: 96
Xft.antialias: true
Xft.rgba: rgb
Xft.hinting: true
Xft.hintstyle: hintslight
Xft.autohint: false
Xft.lcdfilter: lcddefault
Last edited by bedtime (2019-02-19 23:36:15)
Offline
This is explained in the xterm manpage.
Add
*VT100.scrollbar.translations: #override \n\
<Btn5Down>: StartScroll(Forward) \n\
<Btn1Down>: StartScroll(Continuous) MoveThumb() NotifyThumb() \n\
<Btn4Down>: StartScroll(Backward) \n\
<Btn1Motion>: MoveThumb() NotifyThumb() \n\
<BtnUp>: NotifyScroll(Proportional) EndScroll()
to your resources. (Straight copy from the manpage)
Offline
This is explained in the xterm manpage.
Add*VT100.scrollbar.translations: #override \n\ <Btn5Down>: StartScroll(Forward) \n\ <Btn1Down>: StartScroll(Continuous) MoveThumb() NotifyThumb() \n\ <Btn4Down>: StartScroll(Backward) \n\ <Btn1Motion>: MoveThumb() NotifyThumb() \n\ <BtnUp>: NotifyScroll(Proportional) EndScroll()
to your resources. (Straight copy from the manpage)
Thank you. This solved it. I tried the other example and found that both didn't quite do what I wanted but found that things worked a little better as:
*VT100.scrollbar.translations: #override \n\
<Btn1Down>: StartScroll(Continuous) MoveThumb() NotifyThumb() \n\
<Btn1Motion>: MoveThumb() NotifyThumb() \n\
<BtnUp>: NotifyScroll(Proportional) EndScroll()
The above code allows for both left handed grabbing and mouse wheel up/down and little to no tearing.
Offline