Summary: | "less" command o/p cannot scroll with mouse wheel in konsole | ||
---|---|---|---|
Product: | [Applications] konsole | Reporter: | prakash <pjkonweb> |
Component: | general | Assignee: | Konsole Developer <konsole-devel> |
Status: | RESOLVED FIXED | ||
Severity: | wishlist | CC: | davidben |
Priority: | NOR | ||
Version: | 1.6.6 | ||
Target Milestone: | --- | ||
Platform: | Compiled Sources | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
prakash
2008-03-15 06:31:21 UTC
Here is a discussion on the same bug(or wishlist?):- http://www.linuxquestions.org/questions/linux-software-2/less-command-output-i-cannot-scroll-through-it-627821/ gnome-terminal does a funny thing when the foreground program is interactive (i.e. like vim, nano, less) and uses the alternate screen (with the scrollbar disabled): it translates mouse wheel events into up-arrow and down-arrow keyboard events. Whether we want this behavior in Konsole, I don't know. well,Konsole already supports scrolling with mouse wheel on vim and nano like editors.then why NOT "less"?it is the most commonly used pager! Please do enable konsole the "capabilities" :p Thanks! *** Bug 157174 has been marked as a duplicate of this bug. *** I suspect this is a matter of telling 'less' to use the alternate screen instead of the primary screen... i.e. it depends on what TERM is set to. (At least that seems to be the case based on my experience with terminal emulation on Cygwin.) SVN commit 786780 by knight: If the terminal application is not interested in mouse events and the display's scroll bar is not movable then send Up/Down key press events to the terminal instead. This makes it possible to scroll up and down in 'less' and other applications using the mouse wheel. One key press is sent for every 5 degrees of mouse wheel rotation. Typical mouse wheels operate in steps of 15 degrees which equals 3 lines scrolled per notch. This default is the same as Vim's default mouse wheel scroll step. As in gnome-terminal and others, this has side effects such as the mouse wheel scrolling through history results in the shell if the shell is run in a program such as screen. BUG: 159340 M +36 -1 TerminalDisplay.cpp M +3 -0 TerminalDisplay.h WebSVN link: http://websvn.kde.org/?view=rev&revision=786780 |