Professional Web Applications Themes

questions regarding $PAGER - FreeBSD

I am running FreeBSD 5.3-Release I have a few questions regarding the pagers more and less. If I type "man more" at the prompt i get the man page for less are more and less now considered interchangeable? When I do view a file with more my percentage of the file viewed is displayed in the bottom right hand screen. However when I view a manpage the number of bytes viewed as opposed to percentage is displayed at the bottom right hand of the screen. How can i set this so that percentage is displayed by default? my output of ...

  1. #1

    Default questions regarding $PAGER

    I am running FreeBSD 5.3-Release

    I have a few questions regarding the pagers more and less.
    If I type "man more" at the prompt i get the man page for less
    are more and less now considered interchangeable?

    When I do view a file with more my percentage of the file
    viewed is displayed in the bottom right hand screen.

    However when I view a manpage the number of bytes viewed
    as opposed to percentage is displayed at the bottom right
    hand of the screen. How can i set this so that percentage is
    displayed by default?

    my output of echo $PAGER is more.

    regards,

    -Adam

    Adam Guest

  2. #2

    Default Re: questions regarding $PAGER

    On Mar 15, 2005, at 1:46 AM, Adam Michalak wrote: 

    FreeBSD might actually ship with less configured to replace more.
     

    Consider adding something like this to your shell startup:

    LESS='-cdegiMMs -h20 -j4'
    export LESS

    [ If you use tcsh, use setenv instead. ]

    --
    -Chuck

    Charles Guest

  3. #3

    Default Re: questions regarding $PAGER

    In the last episode (Mar 14), Adam Michalak said: 

    Manpages are stored compressed, so 'less' always gets input from stdin
    and doesn't know the size of the doent until you have hit the
    bottom. Load up a manpage, hit End, then Home, and you will see that
    it now displays a percentage. Searching for a string that doesn't
    exist will also cause it to read the entire file and start giving you a
    percentage.
     

    In that case, don't hit End, since when 'less' is emulating 'more', it
    exits itself when you hit the end of the doent :) 'more' is a Posix
    standard command and isn't supposed to do that, though, so don't count
    on that behaviour.

    --
    Dan Nelson
    com
    Dan Guest

  4. #4

    Default Re: questions regarding $PAGER

    Thanks, your excellent answer prompted me to actually read the less man page :)
    Lots of usful stuff. One question. On 4.11, at least no meaning is suggested for
    MM (rather than M). Is this a typo or an undoented feature?

    On Tue, 15 Mar 2005, Charles Swiger wrote:
     
    >
    > FreeBSD might actually ship with less configured to replace more.

    >
    > Consider adding something like this to your shell startup:
    >
    > LESS='-cdegiMMs -h20 -j4'
    > export LESS
    >
    > [ If you use tcsh, use setenv instead. ]
    >
    > --
    > -Chuck
    >
    > _______________________________________________
    > org mailing list
    > http://lists.freebsd.org/mailman/listinfo/freebsd-questions
    > To unsubscribe, send any mail to "org"
    >[/ref]

    doug Guest

  5. #5

    Default Re: questions regarding $PAGER

    On Mar 15, 2005, at 12:47 PM, doug wrote: 

    Some versions of less will display an even more verbose prompt with
    -MM, just like using -v twice in some other programs will show more
    verbosity....

    --
    -Chuck

    Charles Guest

Similar Threads

  1. Custom pager
    By Roberto Lopez in forum ASP.NET Data Grid Control
    Replies: 0
    Last Post: April 19th, 04:53 PM
  2. DataGrid Pager Text?
    By szabelin in forum ASP.NET Building Controls
    Replies: 1
    Last Post: September 9th, 07:08 PM
  3. Pager and Event Handling
    By sunil in forum ASP.NET General
    Replies: 2
    Last Post: July 18th, 09:08 PM
  4. TAP pager
    By roach_01 in forum PERL Miscellaneous
    Replies: 0
    Last Post: July 4th, 10:55 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139