block 455585 with 230990 thanks Daniel Burrows wrote: > On Mon, Dec 10, 2007 at 04:09:54PM -0800, Josh Triplett <[EMAIL PROTECTED]> > was heard to say: >> Less, emacs, and vim all support the mouse wheel in a terminal, and >> scroll their window with the wheel. Please consider doing the same in >> aptitude. > > AFAIK less is not mouse-aware. Do you mean links?
No, I mean less. For instance, try opening a manpage with less as your pager and scrolling with the mouse wheel. Less will scroll up and down in the manpage, rather than allowing the terminal to scroll up and down in its scrollback buffer. This works in gnome-terminal, at least; it does not seem to work in xterm or uxterm. > My understanding is that links, emacs, and vim all reimplement some > amount of curses. aptitude historically has tried to respect the curses > abstraction layer (unlike, say, the apt abstraction layer) and not get > into interpreting terminal codes itself. This means that its terminal > support isn't quite as advanced as the programs that have a custom > terminal library. It also prevents me from going insane. I consider > this a feature. :-) Fair enough. > In this case, for instance, ncurses doesn't actually support button 5, > which is more or less necessary to get mouse wheel support. There is > experimental code in ncurses to support it, but Debian doesn't compile > it in (probably because it's experimental). > > I've just checked some code in to cwidget which should provide some > basic support for the mouse wheel once Debian has a wheel-aware ncurses. > (either that or it'll blow up, whee) Until then I don't plan to try to > hack around curses here, sorry. Thank you. I've made this bug depend on 230990, which requests wheel support in ncurses. - Josh Triplett
signature.asc
Description: OpenPGP digital signature