New issue 974 by vczi...@gmail.com: XCode 4/Lion build fixes.Mouse wheel
scrolling in alt screen mode.
http://code.google.com/p/iterm2/issues/detail?id=974
Here's a patch against trunk that fixes build problems on Lion/XCode4.
(There's no MacOSX10.5.sdk and no ppc support on those platforms).
The project builds against MacOSX10.6.sdk and removes PPC builds.
It also fixes an issue with Growl.framework library name by making it
relative to the executable path
(@executable_path../Frameworks/Growl.framework).
The patch also adds mouse wheel scrolling support when a terminal is in
MOUSE_REPORTING_NONE mouse mode and is using an alternate screen by
translating them to arrow up/down terminfo escape sequences. (ala MouseTerm
).
This allows for instance a user to use its mouse wheel to scroll through a
man page (like in konsole or gnome-terminal on linux).
Attachments:
iTerm2_full.patch 8.3 KB
Thanks! I will apply this for 1.1, as features are closed for 1.0.
On second look, I don't think I can apply this as it stands. The scroll
wheel can still be used to navigate the scrollback history in alternate
screen mode, and this breaks that functionality. There could be a
per-profile preference to enable that behavior.
I agree with you and I will resubmit a patch with per-profile preference as
soon as I find 5 minutes.
I think the logical choice to put a preference for that is in the 'Terminal'
tab under the 'Enable xterm mouse reporting' check box.
The new check box could be titled 'Scroll Wheel emulates KeyUp/KeyDown in
alternate screen mode' .
I couldn't come up with a better self-describing title that succeed in
conveying what the option does to a user.
Any suggestions ?
How about "Scroll wheel sends up and down arrow keys in alternate screen",
if it fits?
Also, please remove the 10.6 sdk stuff as we will continue supporting 10.5
through the next release.