Skip to content

Implement horizontal mouse wheel scrolling - #2088

Draft
BenBE wants to merge 1 commit into
htop-dev:mainfrom
BenBE:mouse-version-2
Draft

Implement horizontal mouse wheel scrolling#2088
BenBE wants to merge 1 commit into
htop-dev:mainfrom
BenBE:mouse-version-2

Conversation

@BenBE

@BenBE BenBE commented Aug 23, 2026

Copy link
Copy Markdown
Member

Fixes: #2084

As noted in the original issue for this, this requires ncurses 6.6 with --enable-ext-mouse2 to be enabled at compile-time.

Patch provided by @fasterit; bugfixed on import to git.

@BenBE BenBE added this to the 3.6.0 milestone Aug 23, 2026
@BenBE BenBE added the enhancement Extension or improvement to existing feature label Aug 23, 2026
@coderabbitai

coderabbitai Bot commented Aug 23, 2026

Copy link
Copy Markdown

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: dadf8e70-f5ea-407e-8dcb-d6fa1ad36fd3

📥 Commits

Reviewing files that changed from the base of the PR and between 1a4504c and d959b3c.

📒 Files selected for processing (2)
  • CRT.c
  • ScreenManager.c

Included review availability: Your plan provides up to 8 included reviews per hour; 7 remain after this review.


📝 Walkthrough

Walkthrough

The change adds support for ncurses mouse buttons 6 and 7 when NCURSES_MOUSE_VERSION > 2. CRT_setMouse enables both press events. ScreenManager maps button 6 to KEY_LEFT and button 7 to KEY_RIGHT. Older ncurses versions keep the existing mouse mask.

Assessment against linked issues

Objective Addressed Explanation
Support horizontal mouse wheel scrolling through buttons 6 and 7 [#2084]

Poem

Two buttons join the mouse’s flight,
Six moves left and seven right.
Ncurses wakes to catch the stream,
Wide process lines now shift and gleam,
As keys guide the scrolling light.

Merge Risk: ⚪ Minimal · up to d959b

This PR adds horizontal mouse-wheel scrolling through a localized change, and no actionable merge-blocking risk remains beyond normal checks and review.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@fasterit

Copy link
Copy Markdown
Member

As mentioned on the linked issue, this needs ncurses-6.6-20260829 or later. Might be worth guarding with NCURSES_VERSION_PATCH >= 20260829.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement Extension or improvement to existing feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Feature: The horizontal mouse wheel scrolling in the process list

2 participants