Use Mouse Wheel in man/less

I can scroll with the mouse wheel in xterm when I use standard command output and whatnot, but I can't figure out how to scroll through man pages with the scroll wheel.  Thoughts?
Last edited by MarCustomized (2008-11-06 03:43:58)

I just spent 20 minutes digging in the manuals for urxvt and lesskey because I realized I'd also like something like this. The bad news it, it isn't going to (easily) happen without patching less (or simply using another pager; most and mcview are good). The rest of this post is technical detail you probably don't need unless you're more persistent than I am.
Xterm-compatible terminals don't send mouse events by default. That can be worked around by sending the appropriate control sequences ('\e[?9h' and '\e[?9l') before and after (respectively) running less. A quick shell function could automate this. The larger problem is that there's no way to get just the button pressed: it also sends the coordinates of the pointer at the time of the click. You can tell less to scroll based on events by entering the appropriate sequences in your ~/.lesskey file and running lesskey (see `man lesskey`). As these sequences include the coordinates, you would need to have a line for every permutation. Without poking around the source I don't even know if less can handle that many bindings.

Similar Messages

  • How to use Mouse Wheel Events

    Hello Everyone
    I am using Datagrid in my Canvas.
    I use mouse wheel to scroll the datagrid. But in one scroll
    through that wheel make the more than 4 rows to be scroll.
    So Now my requirement is to control the delta value of mouse
    wheel event and how to use that with my datagrid so that i will
    able to scroll one row through mouse wheel scroller.
    Thanks

    please give me some suggestion around it.
    I want to scroll one row of datagrid with per mousewheel
    scroll. I am not getting how to use the scrollMouseWheelMultiplier
    property of the IConfiguration class because i am not able to
    create the object of this class.
    I am using the Flex 3.0 and flash 9 version.
    please help me out around this.

  • PSE 7: Editing- Unable to Zoom Using Mouse Wheel

    I just upgraded from PSE 5 to PSE7.
    Unable to Zoom in/out on a picture using my mouse wheel (with move arrow selected).
    I used to be able to do this in PSE 5... What am I doing wrong/whats missing?
    Thanks!
    John
    [email protected]

    Did you enable scroll wheel zooming in the PSE preferences?

  • Using mouse wheel to zoom and pan

    I was wondering if there would be a way to make a javascript that would load at Photoshop's startup that would allow the user to zoom in and out using the mouse wheel (instead of using it for scrolling), and to use that same mouse wheel as a third button (when you push on the mouse wheel) or any third button on a three button mouse to pan in your image. I'm a 3ds max user and I love the way the navigation work in that software so it'd be great to be able to do that for Photoshop and Illustrator and get rid of those useless key shortcuts that we need to use to zoom and pan.
    For the pan fonction, I guess if there was a way to simply say "when the third mouse button is pressed, press the space button, until the mouse button is released" it could work. But then it would force the panning to stop when the mouse goes offscreen, unlike in 3ds max where you can pan for whatever distance you want, even if you have the loop throught the screen ten times.
    For the zoom function, if scolling up could simply "push" the keyboard shortcuts to zoom in/ zoom out it could work, but I don't know if that's possible. And then we'd have to disable the scrolling up and down in the document.
    Anyways, if anyone has any ideas about that let me know! I've been looking for that for such a long time!

    Not sure if I am misreading your post, but there is an option in the preferences that allows you to choose Zoom With Scroll Wheel. With this option active you hold the ALT key to scroll.
    My Logitech mouse has a tilt wheel on it and this works fine in Photoshop. It doesn't loop through the screen but it does pan left and right with no problem. On this mouse the scroll wheel can also be pressed, and can be programmed to almost any key, I use for double click.
    Forgive me if I've misunderstood your question.

  • 2.1 bug: navigation snapback using mouse wheel in Library

    Running 2.1 under WinXP, I get this behavior intermittently:
    When using the mouse wheel to advance from one image to the next in the Library module, the focus will snap backwards from the currently selected image to some previous image. It will not snap back to the immediately previous image, but to an image 2 or 3 positions earlier.
    When this behavior appears, it persists, even after closing and restarting LR ... and most recently even after rebooting WinXP.

    Could be a mouse driver thing, a LR thing, an OS thing.
    For more direct control that doesn't slip, use arrow keys.

  • Zooming using mouse wheel ?

    I just upgraded from PSE 5 to 9.  One of the handy functions in PSE 5 was the use of the mouse wheel to zoom in or out of a picture that you're working on in the editing work space.  Now it seems I have to use the brackets or the awkward zoom tool.
    Is there a way I can activate/modify something so I can zoom with the mouse wheel?  Thanks.
    Also, the type on the pulldown menus is harder to read than in PSE 5 because the type is small and it's revered out of black.  I'm going to explore the workspace in PSE 8.  Maybe I upgraded too far.

    Open a photo in "Full Photo Edit" mode.
      Select Edit>Preferenes>General.  Check the box that says "Zoom with Scroll Wheel".
    Bob

  • Switch between desktops using mouse wheel

    Just a simple question - is there a possibility to switch desktop with use of the mouse wheel on the desktop background? I know it is possible in XFCE, but how about KDE or GNOME?
    Why it is important to me - I have simplified changing desktops by setting a 5 pixel margin on the bottom and the right of the screen, so there is always desktop background visible. To switch desktop I simply move mouse to the edge of the screen and scroll - simple, fast and efficient. And funny - this is the main thing that binds me to XFCE, even though my computer is fast enough to handle KDE4 .
    Some time ago I have installed GNOME, and later KDE4.1, and tried to find such feature, but I did not succeed unfortunately, even though I spend some time over the documentation and the settings panels. Currently with the introducing KDE4.2 and nvidia-180 driver, which improves 2D graphics somewhat (i.eg. gtkperf gives now 6.5 sec instead of 9.5 that it used to be before upgrade) I'm interested in switching to KDE. Can anyone help me?
    P.S. Sorry fo my english
    Last edited by Devastator (2009-01-17 11:16:10)

    Sure, with compiz you can do a lot more than this . I've installed KDE4 again, but cannot get it to switch desktops the way I wanted. Scroll over pager works on every DE, though it requires precise mouse aiming over the pager. In XFCE I don't have to aim - just move the mouse to the side of the screen (where I have margin set, so desktop is available there) and scroll.
    Alt+scroll requires additional movement, which is annoying when for example I do things, that don't require keyboard use (like composing the playlist, browsing the web, changing the GTK2 themes and so on ). I like minimizing things to do to achieve the goal. Therefore I also use cairo-dock, which removed additional mouse click (for raising the menu) when opening the most used applications...
    A funny and I think useful feature I found in KDE4 is action bound to scroll over the window titlebar - it moves the window and the user to the next desktop .
    Last edited by Devastator (2009-01-19 12:50:07)

  • Computer restarts when using mouse wheel

    Ok so recently when using firefox and im using my mouse wheel to search the pages my computer suddenly restarts. It happens randomly but fairly often. I thought it might be a problem with my pc but ive tried google chrome for the last day or so and ive not had one problem. I really cant stand chrome so im putting this out there to see if anyone could diagnose my problem.
    thanks

    Did you try another mouse?
    Also make sure that you have the latest version of the graphics display and the mouse driver.
    Try to boot the computer in Safe mode with network support (press F8 on the boot screen) as a test to see if that works.

  • Using mouse wheel to zoom? (Macs)

    Hi guys,
    I recently made the jump to Mac from PC (had been designing almost completely on PC for 12 years).  I've discovered a wealth of shortcuts for Flash CS5 on Mac, but it's missing a significant one for me:
    On Flash for PC, the user can press CTRL + SHIFT + Wheel Scroll to zoom in and out.
    On Mac, although users can wheel-zoom (+ ALT)  in Photoshop, Illustrator, and even InDesign -- Flash doesn't have this capability.
    Call me nitpicky, but this was the most significant shortcut for me on PC.
    I notice this same topic has been posted sparsely over the years, with very few repliesand no remedy.
    I'm hoping someone's figured out a way or knows of a solution?
    Would really appreciate any help.  Thank you!
    -T

    Not sure if I am misreading your post, but there is an option in the preferences that allows you to choose Zoom With Scroll Wheel. With this option active you hold the ALT key to scroll.
    My Logitech mouse has a tilt wheel on it and this works fine in Photoshop. It doesn't loop through the screen but it does pan left and right with no problem. On this mouse the scroll wheel can also be pressed, and can be programmed to almost any key, I use for double click.
    Forgive me if I've misunderstood your question.

  • Cycle through windows using mouse wheel.

    Hi,
    I want to get a set up that allows me to cycle through open windows by holding down the right mouse button and rolling the scroll wheel in xfce. Does anyone have any advice on how I might do this?
    Thanks.

    Here's something I hacked up based on some other code I have, however I haven't tested it so I have no idea if it will work, also the right click will currently be passed on to the active window which could be annoying.
    If you want to try it, change the system() lines to match the xdotool command line you need, save as main.c, compile with "gcc -o scrollswitch main.c -lX11", run the resulting scrollswitch executable and cross your fingers
    #include <X11/Xlib.h>
    #include <stdlib.h>
    #include <stdio.h>
    #include <string.h>
    int main()
    Display *dpy;
    XEvent ev;
    int right_down = 0;
    if (!(dpy = XOpenDisplay(NULL))) {
    fprintf(stderr, "Could not open display %s", getenv("DISPLAY"));
    // Guessing that 3
    XGrabButton(dpy, 3, 0, DefaultRootWindow(dpy), True, ButtonPressMask, GrabModeSync, GrabModeAsync, None, None);
    XGrabButton(dpy, 4, 0, DefaultRootWindow(dpy), True, ButtonPressMask, GrabModeSync, GrabModeAsync, None, None);
    XGrabButton(dpy, 5, 0, DefaultRootWindow(dpy), True, ButtonPressMask, GrabModeSync, GrabModeAsync, None, None);
    for (;;) {
    XNextEvent(dpy, &ev);
    if (ev.type == ButtonPress) {
    if (ev.xbutton.button == 3) { /* Right click */
    right_down = 1;
    /* Grab pointer so we receive ButtonRelease */
    XGrabPointer(dpy, DefaultRootWindow(dpy), True, PointerMotionMask | ButtonReleaseMask, GrabModeAsync, GrabModeAsync, None, None, CurrentTime);
    XAllowEvents(dpy, ReplayPointer, CurrentTime); /* Allow other apps to process this message */
    if (right_down) {
    if (ev.xbutton.button == 4) { /* Scroll up? */
    system("xdotool alt shift tab"); // Fix this
    if (ev.xbutton.button == 5) { /* Scroll down? */
    system("xdotool alt tab"); // Fix this
    } else {
    XAllowEvents(dpy, ReplayPointer, CurrentTime); /* Allow other apps to process this message */
    } else if (ev.type == ButtonRelease) {
    if (right_down) {
    XUngrabPointer(dpy, CurrentTime);
    right_down = 0;
    XCloseDisplay(dpy);
    return 0;

  • How to remap mouse wheel in single application?

    Hello,
    I want to achieve simple thing - control audio in Smplayer using mouse wheel. The tricky part is that I need to control the master volume on my AV receiver because the audio in videos is played as bitstream (DTS/AC3 over SPDIF). I'm able to modify the mouse wheel actions in mplayer but unfortunatelly Smplayer doesn't allow such remapping: http://smplayer.sourceforge.net/forum/v … f=2&t=6077
    I already use xbindkeys with xvkbd for application specific remapping of both keyboard and mouse. I can remap the wheel for Smplayer window but I'm unable to figure out how to make sure the wheel will work for other applications as well - I'm just unable to simulate mouse wheel action for applications other than Smplayer. (Or is there any other way how to not modify the button for other applications?)
    If I try only simulating the wheel, it doesn't work...
    # .xbindkeysrc
    "xdotool click 4"
    m:0x0 + b:4
    # or
    "xvkbd -text "\m4""
    m:0x0 + b:4
    However if I add "sleep 0.2" before xvkbd or xdotool, it works (but this is unacceptable delay for me). Also if I try to simulate wheel on keyboard press, it works even without the sleep.
    Any help or suggestion?

    not really.. sorry
    Kunal Mittal

  • Mouse wheel to adjust values of colors/ font size etc

    Hello,
    Is that possible to make FW CS5 use mouse wheel to adjust values (hue, saturation, font size etc.) similarly to PS?
    It's a bit of a drag to have to click the slider and each time I want to fine tune the tone.
    Rgs
    Joey

    You can set the pref mousewheel.withcontrolkey.numlines to -1 on the about:config page.
    The pref mousewheel.withcontrolkey.action must be 3 (default)
    To open the <i>about:config</i> page, type <b>about:config</b> in the location (address) bar and press the "<i>Enter</i>" key, just like you type the url of a website to open a website.<br />
    If you see a warning then you can confirm that you want to access that page.<br />
    * http://kb.mozillazine.org/about%3Aconfig

  • Firefox bug when clicking "open link in new tab" or mouse wheel

    I am starting to get this bug for a last few days.
    When I am trying to click "Open link in new tab" or, as usual using mouse wheel click, inside a Firefox window I got this for a couple of seconds before page shows up.
    https://lh3.googleusercontent.com/-tbYPFx7jBn4/VIBxWfNBp8I/AAAAAAAABPM/yxArZ9Zbw88/s1000/bug.jpg
    As you can see it's a mix of previous pages I was viewing for a last few days....
    All those pages was not open at the this moment, it's just like a flash back :O)
    Any idea what may cause it?

    hello Bubunya, maybe that's an issue with hardware acceleration - please try [[Upgrade your graphics drivers to use hardware acceleration and WebGL|updating your graphics driver]], or in case this doesn't solve the issue or there is no new version available at the moment, disable hardware acceleration in the firefox ''menu ≡ > options > advanced > general'' (that setting will take a restart of the browser to take effect).

  • I use a two button mouse with my Mac Book Pro.  It works fine, but after installing Lion, the mouse wheel goes in reverse of what it did (rolling the wheel towards your palm goes up not down the page).  Anyone know how to fix this?

    I use a two button mouse with my Mac Book Pro.  It works fine, but after installing Lion, the mouse wheel goes in reverse of what it did (rolling the wheel towards your palm goes up not down the page).  Anyone know how to fix this?

    First sentence in OPs question:
    I use a two button mouse with my Mac Book Pro
    I guess the track pad settings would look similar to my screen shot?
    Regards,
    Colin R.

  • Using the mouse wheel to scroll, now jumps a few albums at a time unlike before

    help!  Using the mouse wheel to scroll, now jumps a few albums at a time unlike before ><
    In the past I was just able to go into the mouse control settings in control panel and reduce wheel scrolling to 1 page at a time.  Now i'm not able to scroll one album at a time anymore, even though my mouse control panel is still set to scroll at one page at a time.  Its skipping two albums ahead now and I can't pin point to the album I want now unless if I click on it.  I haven't used ituens in awhile so it must be something new on the last 2 updates, I don't see anything in the perference menu.
    thx

    I can't use the keyboard to scroll. I need to keep my hand on the mouse, otherwise I'd never get anything done. Since I have no problem getting Firefox to scroll one page at a time, and I'm constantly jumping between 3 browsers, it would be nice to be able to scroll a full page at a time in Safari, just like I can in Firefox. Thanks.

Maybe you are looking for