Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scrolling up works, but not down #321

Closed
paps opened this issue Aug 19, 2014 · 13 comments · Fixed by #606
Closed

Scrolling up works, but not down #321

paps opened this issue Aug 19, 2014 · 13 comments · Fixed by #606
Labels
component:terminal Ncurses and terminal

Comments

@paps
Copy link

paps commented Aug 19, 2014

Currently on an unstable Debian, I'm using tig (version 2.0.2) in tmux (version 1.9) in xterm (version 308).

In my .gitconfig I have:

[tig]
    mouse = true

Moving with the arrow keys and JK works as excepted. Scrolling with the mouse wheel to go up also works as expected. However scrolling down with the mouse wheel does nothing...

Mind you, my mouse wheel works well everywhere else, be it in vim or tmux to scroll buffers (up AND down).

So, do you have any idea of what can cause this?

Thanks :)

@jonas
Copy link
Owner

jonas commented Aug 20, 2014

I've tested with tmux 1.8, xterm 297 and tig 2.0.2 on OS X and have not able to reproduce it.
Will try to test on Ubuntu tomorrow.

To rule out any local configuration, could you try starting tig with?

TIGRC_SYSTEM= TIGRC_USER= tig

@paps
Copy link
Author

paps commented Aug 20, 2014

Nope, still having the issue

@jonas
Copy link
Owner

jonas commented Aug 22, 2014

I've been able to reproduce this with Ubuntu 14.04 in both xterm and gnome-terminal. Not sure if this is a problem in ncurses, the term database or the environment. Mouse events read with getmouse() when scrolling down simply returns ERR.

@jonas jonas added the component:terminal Ncurses and terminal label Oct 2, 2014
@raduma
Copy link

raduma commented Dec 9, 2014

Curious if there's any fix for this yet?

@jonas
Copy link
Owner

jonas commented Dec 9, 2014

@raduma No, I've not been able to figure out what is causing this issue. What version of ncurses, xterm, tmux, tig are you using?

@raduma
Copy link

raduma commented Dec 10, 2014

Running tig on ubuntu trusty 14.04. It repro's when I run it directly under xterm, or when I run it via ssh from my macbook iterm2, or when I run it through tmux, either through xterm or ssh. Versions of stuff:

  • tig version 2.0.3-12-gd4d11fa
  • Xterm(297)
  • tmux 1.8

Not sure exactly how to check the ncurses version. Maybe this?
$> ncurses5-config --version
5.9.20140118

Let me know if I can do anything to help you debug this. Happy to build and debug things locally if needed.

@michaelbarlow7
Copy link
Contributor

I'm getting this as well, running the latest tig on Linux Mint 17.

I have a feeling it's a curses problem. I ran this sample code and I'm getting the same issue.

http://pastebin.com/dSGc4KSg

Scrolling up works correctly (I get "Get mouse was ok"). Scrolling down shows "getMouse failed".

Versions:

  • Xterm(297)
  • ncurses: 5.9.20140118

@michaelbarlow7
Copy link
Contributor

Also happens on Xubuntu 14.04.

@jonas
Copy link
Owner

jonas commented Mar 28, 2015

Thanks for giving this some more testing. I arrived at the same conclusion when I looked at this a while back.

@lucc
Copy link

lucc commented Feb 10, 2016

I also have this problem on Arch Linux.
xterm: 322
urxvt: 9.22
ncurses: 6.0
tig: 2.1.1

Are there any news on this? Should this be reported upstream?

@php-coder
Copy link

The same behavior on Fedora 22, tig 2.11, gnome-terminal 3.16.2 and ncurses-5.9-18.20150214

@navytux
Copy link

navytux commented Sep 20, 2016

I've digged it a bit. The problem is ncurses is built without --enable-ext-mouse in e.g. Debian and with old events encoding there is no way to represent button5. Details:

https://bugs.debian.org/838376

rolandwalker added a commit to rolandwalker/tig that referenced this issue Jun 19, 2017
rolandwalker added a commit to rolandwalker/tig that referenced this issue Jun 19, 2017
rolandwalker added a commit to rolandwalker/tig that referenced this issue Jun 19, 2017
jonas pushed a commit that referenced this issue Jun 20, 2017
@viktor-yang
Copy link

Up and down is Ok, bug left and right not work. Can you support it?

Mac, iterm2 Build 3.1.5
tig version 2.3.3-17-g0ea017d
ncurses version 5.7.20081102
readline version 7.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component:terminal Ncurses and terminal
Projects
None yet
Development

Successfully merging a pull request may close this issue.

8 participants