LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   centos 5.6: how to let man pages remain after exit (https://www.linuxquestions.org/questions/linux-newbie-8/centos-5-6-how-to-let-man-pages-remain-after-exit-882268/)

needsleep 05-23-2011 09:57 AM

centos 5.6: how to let man pages remain after exit
 
Running man, upon exit "erases" what man was displaying. I'd like to leave it up so I could scroll back through it. Is this a function of the PAGER or MANPAGER environment variables?

Thanks,

paulsm4 05-23-2011 10:03 AM

Hi -

Try this:
Quote:


This is caused by the termcap deinitialization sequence, so uncomment the PAGER line in /etc/manpath.config and append X.

needsleep 05-23-2011 12:15 PM

I don't have a file /etc/manpath.config, in centos 5.6, but I do have an /etc/man.config
This file has the line:
PAGER /usr/bin/less -is
The line was already uncommented.

I believe I set my PAGER variable in a startup file to "less -s". I will try to figure out what startup file that was.

Thanks,

paulsm4 05-23-2011 01:27 PM

Hi -

Sorry I wasn't clearer: "less -X" will prevent "less" from erasing the contents of the man page after you exit.

Adding the "-X" to your "/etc/man.config" (as opposed to some other, global configuration) will limit the changed behavior to man pages only (arguably a Good Thing).

That's all I was trying to say :)

'Hope that helps .. PSM

needsleep 05-23-2011 02:32 PM

It works! It works! Thank you very much!


All times are GMT -5. The time now is 05:55 AM.