Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have two computers with the latest Fedora. On the first, I'm using zsh and the mouse wheel can be used with the less pager within gnome-terminal to scroll the pager.

On the second, I use bash and the mouse whell scroll the terminal history, not the pager.

The shell shouldn't make any difference, why can't I use the mouse wheel to scroll in the second case?

share|improve this question

migrated from stackoverflow.com Jul 30 '12 at 6:33

This question came from our site for professional and enthusiast programmers.

    
This site is for programming related questions, try unix.stackexchange.com –  Let_Me_Be Aug 2 '11 at 7:23

1 Answer 1

up vote 8 down vote accepted

The computer where less scrolled had LESS=-r, the other had LESS=-asXFMMRqix8

From the less man page:

   -q or --quiet or --silent
          Causes  moderately  "quiet"  operation: the terminal bell is not
          rung if an attempt is made to scroll past the end of the file or
          before the beginning of the file.  If the terminal has a "visual
          bell", it is used instead.  The bell will  be  rung  on  certain
          other  errors, such as typing an invalid character.  The default
          is to ring the terminal bell in all such cases.

   -X or --no-init
          Disables sending the termcap initialization and deinitialization
          strings  to  the  terminal.   This is sometimes desirable if the
          deinitialization string does something unnecessary, like  clear‐
          ing the screen.

The -X option prevented scrolling all together and the -q option caused the pager to enter a non scrollable state when scrolling past the beginning or end of file.

My options are now LESS=-asrRix8

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.