X-Spam-Check-By: sourceware.org To: cygwin AT cygwin DOT com From: mwoehlke Subject: Re: Ansi escape sequences showing in Man pages Date: Wed, 09 Aug 2006 19:15:57 -0500 Lines: 48 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.5) Gecko/20060719 Thunderbird/1.5.0.5 Mnenhy/0.7.4.0 In-Reply-To: X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com No http://cygwin.com/acronyms/#TOFU please, and http://cygwin.com/acronyms/#PCYMTNQREAIYR... thanks! jbonnett AT sola DOT com DOT au wrote: > Igor Peshansky wrote: >> On Wed, 9 Aug 2006, jbonnett wrote: >>> I am having a problem where escape sequences, rather than colour >>> highlighting, appear when I display man pages. >>> [snip] >>> >>> Any clues about what to check to fix this on my work machine? >> >> Unset PAGER. > > Unset PAGER did not fix things, but after reading some man pages on the > Internet, I discovered a way to make things work for me. > > PAGER="less -r" > Export PAGER > > After that I get readable highlighted man pages. Hmm, you shouldn't have to do that. What is the output of the following commands (with PAGER and MANPAGER unset)? $ unset PAGER ; unset MANPAGER # no output, but do this first $ man -d man 2>&1 | tail -n 1 # what man thinks it is doing $ grep PAGER /usr/share/misc/man.conf # what man is being told to use (note: '#' and things after are comments; you don't need to type them) You should get something like: $ unset PAGER ; unset MANPAGER $ man -d man (cd "/usr/share/man" && (echo ".pl 11i"; /usr/bin/cat '/usr/share/man/man1/man.1') | /usr/bin/tbl | /usr/bin/nroff -c -mandoc 2>/dev/null | /usr/bin/less -isrR) $ grep PAGER /usr/share/misc/man.conf PAGER /usr/bin/less -isrR ...mostly you are looking for sane arguments (-r in particular) being given to 'less'. If not, you may need to edit /usr/share/man.conf, although I would be curious to know how your man.conf got to having a bad PAGER (if that turns out to be the problem). -- Matthew This is not the list you're looking for. -- Perversion of Obi Wan -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/