delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/08/09/20:16:35

X-Spam-Check-By: sourceware.org
To: cygwin AT cygwin DOT com
From: mwoehlke <mwoehlke AT tibco DOT com>
Subject: Re: Ansi escape sequences showing in Man pages
Date: Wed, 09 Aug 2006 19:15:57 -0500
Lines: 48
Message-ID: <ebdtru$eta$1@sea.gmane.org>
References: <CDD2448EDE5CAE4499CA5828A4CAF788B9CE08 AT pine DOT ap DOT sola DOT com>
Mime-Version: 1.0
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: <CDD2448EDE5CAE4499CA5828A4CAF788B9CE08@pine.ap.sola.com>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019