Control: reassign -1 ncurses Control: forcemerge 230990 -1 On 2016-09-20 18:51 +0300, Kirill Smelkov wrote:
> Package: libncursesw5-dev > Version: 6.0+20160625-1 > Severity: normal > > Dear Maintainer, > > Please consider building ncurses with --enable-ext-mouse. Without this > option there is no way to handle mouse scroll down events because in > NCURSES_MOUSE_VERSION==1 there is only 32 bits in event and no space to > represent button 5. For real-world example where scrolling is needed and > does not currently work please see e.g. tig: > > https://github.com/jonas/tig/issues/321 > > Starting from ~ ncurses 5.6 there is a way to build with 64 bits-wide > events and BUTTON5_* introduced: > > http://ncurses.scripts.mit.edu/?p=ncurses.git;a=blob;f=configure.in;h=37e1f8ec;hb=HEAD#l1100 > http://ncurses.scripts.mit.edu/?p=ncurses.git;a=commitdiff;h=55ccd2b9 > > Let me quote: > > ---- 8< ---- > + --enable-ext-mouse > + This defines NCURSES_MOUSE_VERSION 2, and modifies > + the encoding of mouse events to support wheel mice, > + which may transmit buttons 4 and 5. This works with > + xterm and similar terminal emulators. This requires > + ABI 6 because it changes the encoding of mouse > + events. > ... > + --------------------------------------------------------------------- > + BUTTON5_PRESSED mouse button 5 down > + BUTTON5_RELEASED mouse button 5 up > + BUTTON5_CLICKED mouse button 5 clicked > + BUTTON5_DOUBLE_CLICKED mouse button 5 double clicked > + BUTTON5_TRIPLE_CLICKED mouse button 5 triple clicked > + --------------------------------------------------------------------- > ---- 8< ---- > > The downside is that it is an ABI change which means we'll probably need to > introduce libncursesw6. However the change is needed for real because > sometimes > people can only use console without graphics. > > If we do an ABI change, it will probably make sense to enable other ncurses > extensions as well. Many of those are already enabled by default if you configure --with-abi-version=6, see the INSTALL file. Unfortunately, we cannot change the ABI before the release of Debian 9, but I definitely want to do it after the Stretch release. Cheers, Sven