no response to scroll wheel

Bug #1730143 reported by My name
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
htop (Debian)
Fix Released
Unknown
htop (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

". . . new in htop 2.0 . . .
If you're using NCurses 6, htop will also support your mouse wheel for scrolling."
  -- https://hisham.hm/htop/

Doesn't work for me. No response to scroll wheel. Any suggestions? I'd really like to make this work.

htop 2.0.1
ncurses-bin 6.0+20160213-1ubuntu1
Ubuntu 16.04 LTS Xenial, 64 bit
kernel 4.4.0-98-generic
xorg 1:7.7+13ubuntu3
openbox 3.6.1-1ubuntu2
 and that's it. No further DE beyond openbox. System was built from the mini.iso.

Tried in all the following terminals:
lxterminal 0.2.0-1ubuntu0.1
xterm 322-1ubuntu1
terminator 0.98
xvt 2.1-20.1ubuntu1

tags: added: xenial
Changed in htop (Debian):
status: Unknown → New
Revision history for this message
Christian Ehrhardt  (paelzer) wrote :

FYI - For various downstream consumers of ncurse it is still compiled with --with-abi-version=5.
As ncurse 6 was explicitly mentioned I'D assume it is abi ver 6, and that might be the reason.
I have no insight in any planned transition, just wanted to let you know.

Revision history for this message
My name (plmalternate) wrote :

TBH, I don't understand you. As indicated my Ncurses version is 6 something. I don't have a clue how it was compiled since I installed it with apt-get from the standard Ubuntu repo. Are you saying I should try compiling it myself?

Revision history for this message
Christian Ehrhardt  (paelzer) wrote :

Hi,
no I'm not suggesting to build it on your own.

Trying to resummarize:

TL;DR - ncurses is not at (ABI) 6, so htop doesn#t get scroll wheel support atm

Details:
1. htop 2.x + Ncurse 6 = scroll wheel
2. Ncurse is at source version 6
3. But Ncurse is built with API=5 to behave like before
4. Due to that htop does not get the scroll wheel functionality atm

And I was no part of that build or decision I don't know any details.
It was just FYI as I have seen the bug and realized this special build option.

If you are interested what I mean search for
  .so.5
and
  .so.6
In https://launchpadlibrarian.net/356722560/buildlog_ubuntu-bionic-amd64.ncurses_6.1-1ubuntu1_BUILDING.txt.gz

tags: added: bot-stop-nagging
Changed in htop (Debian):
status: New → Fix Released
Revision history for this message
Andreas Hasenack (ahasenack) wrote :

I believe this is fixed in cosmic now, after the ncurses transition that happened a few weeks ago.

In a cosmic container, I'm able to move the line in the htop screen with the mouse wheel, whereas in bionic nothing of the sort happens.

And to confirm this further:

bionic:
$ ldd $(which htop)|grep ncurses
 libncursesw.so.5 => /lib/x86_64-linux-gnu/libncursesw.so.5 (0x00007efe6d7a5000)

cosmic:
$ ldd $(which htop)|grep ncurses
 libncursesw.so.6 => /lib/x86_64-linux-gnu/libncursesw.so.6 (0x00007fb763f36000)

Closing the bug as "fix released" since it's available in Cosmic.

Changed in htop (Ubuntu):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.