Announcement

Collapse
No announcement yet.

Konsole in 'shell' profile doesn't work with less and man

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Konsole in 'shell' profile doesn't work with less and man

    Hi,

    the 'less' command doesn't work in Konsole with the default 'shell' profile when the window size is larger than 24 lines. Apparently the current window size is not properly recognized, the 'less' status line appears in the middle of the window, Because 'man' uses 'less' also the display of man pages is broken.

    When using 'less' and 'man' in an 'xterm' of any size all works well.

    Sorry in case this has been covered before, I tried to search, but asking for 'less problems' isn't a very selective question .

    Any hint/help is very welcome.

    With best regards, wfjm.

    #2
    Re: Konsole in 'shell' profile doesn't work with less and man

    If you use man pages in a Konsole window on Kde, there's no need for "less". Simply scroll though the Konsole output with your mousewheel (mouse cursor needs to be over the Konsole window for this).
    Shinda Sekai Sensen<br /><br />Kubuntu Maverick RC x64 w/ Kde 4.5.2 (main)<br />Kubuntu 10.04 x64 w/ Kde 4.5.1 to be wiped, no point in keeping it any longer

    Comment


      #3
      Re: Konsole in 'shell' profile doesn't work with less and man

      Originally posted by Yuri sss
      If you use man pages in a Konsole window on Kde, there's no need for "less". Simply scroll though the Konsole output with your mousewheel (mouse cursor needs to be over the Konsole window for this).
      If the $PAGER environment variable is set to 'less', the system will use less to show man pages. So when you use 'man' you also use 'less'.

      @wfjm:
      Does this happen with other pagers? (try 'most', installable from the repositories)...this should tell whether this is a problem between less and konsole, or a general konsole issue.

      Comment


        #4
        Re: Konsole in 'shell' profile doesn't work with less and man

        Originally posted by kubicle
        Originally posted by Yuri sss
        If you use man pages in a Konsole window on Kde, there's no need for "less". Simply scroll though the Konsole output with your mousewheel (mouse cursor needs to be over the Konsole window for this).
        If the $PAGER environment variable is set to 'less', the system will use less to show man pages. So when you use 'man' you also use 'less'.
        I'm using Kubuntu with the default Konsole settings, and have resized the konsole window to be 40 characters high right from the very beginning. The status line of "man" always appears at the very bottom of the window, never in the middle - the display of man pages works fine, and I can conveniently scroll through them, back and forth, using the mouse wheel. I only use "man <appname>" as command, no "less" or anything else.
        Shinda Sekai Sensen<br /><br />Kubuntu Maverick RC x64 w/ Kde 4.5.2 (main)<br />Kubuntu 10.04 x64 w/ Kde 4.5.1 to be wiped, no point in keeping it any longer

        Comment


          #5
          Re: Konsole in 'shell' profile doesn't work with less and man

          Originally posted by Yuri sss
          I only use "man <appname>" as command, no "less" or anything else.
          The command 'man' uses an external program (pager) to show the information, and by default it is 'less' (defined by $PAGER environment variable...or $MANPAGER, if set). You can easily test this by running 'man --pager=more <appname>', which will force man to use 'more' as a pager instead of the default (less), and you'll notice the difference between 'less' and 'more'.

          I'm using Kubuntu with the default Konsole settings, and have resized the konsole window to be 40 characters high right from the very beginning. The status line of "man" always appears at the very bottom of the window, never in the middle - the display of man pages works fine, and I can conveniently scroll through them, back and forth, using the mouse wheel.
          This shows you're not suffering from the issue described by the OP (I don't either, less works as expected on my machine)...which likely means it's a configuration issue on the OP's machine.

          And trying out a different pager will probably help in hunting down where the cause of the problem is.

          Comment


            #6
            Re: Konsole in 'shell' profile doesn't work with less and man

            Originally posted by kubicle
            @wfjm:
            Does this happen with other pagers? (try 'most', installable from the repositories)...this should tell whether this is a problem between less and konsole, or a general konsole issue.
            Thanks for the tip ! I installed 'most'. It used only the upper part of the window. As suspected before, the problem is most likely in the recognition of the window size by the pagers. The observed behavior of 'more', 'less', and 'most' is consistent and indicates that the assume a 24 line window.

            Originally posted by kubicle
            And trying out a different pager will probably help in hunting down where the cause of the problem is.
            I added a second account, and in that one no problems with man and pagers. At that point it was natural to assume that the problem is in my .profile.

            When I switched back to my original account the issues had disappeared . Completely unclear why, I had the odd man/less behavior consistently ever since I installed 10.4.

            So unclear why, the problem is gone....

            Comment

            Working...
            X