Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm 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 Message-ID: <4235013C.7070603@overbored.net> Date: Sun, 13 Mar 2005 19:13:00 -0800 From: overbored User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: Man pages messed up when viewed over SSH References: <423400C7 DOT 60903 AT overbored DOT net> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-PopBeforeSMTPSenders: gourmet AT overbored DOT net,overbored AT overbored DOT net,yang DOT zhang AT overbored DOT net X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - server883.dnslive.net X-AntiAbuse: Original Domain - cygwin.com X-AntiAbuse: Originator/Caller UID/GID - [0 0] / [47 12] X-AntiAbuse: Sender Address Domain - overbored.net X-Source: X-Source-Args: X-Source-Dir: Thanks for the pointer to man.conf. I tried: PAGER=less man sudoers PAGER='less -isrRe' man sudoers It's always the same thing. But then, on a RH box - just from a completely random guess! - I changed this line in /etc/man.config: # # Useful paths - note that COL should not be defined when # NROFF is defined as "groff -Tascii" or "groff -Tlatin1"; # not only is it superfluous, but it actually damages the output. # For use with utf-8, NROFF should be "nroff -mandoc" without -T option. # TROFF /usr/bin/groff -Tps -mandoc #NROFF /usr/bin/nroff -c -mandoc ### BEFORE NROFF /usr/bin/nroff -c -Tascii -mandoc ### AFTER JNROFF /usr/bin/groff -Tnippon -mandocj KNROFF /usr/bin/groff -Tkorean -mandoc EQN /usr/bin/geqn -Tps NEQN /usr/bin/geqn -Tlatin1 KNEQN /usr/bin/geqn -Tkorean TBL /usr/bin/gtbl # COL /usr/bin/col REFER /usr/bin/grefer PIC /usr/bin/gpic VGRIND GRAP PAGER /usr/bin/less -isr CAT /bin/cat That did the trick. Thus spake Igor Pechtchanski on 3/13/2005 1:47 PM: > On Sun, 13 Mar 2005, overbored wrote: > > >>Hi all, whenever I ssh into a remote host (I've only tried Linux boxes), >>man pages always get messed up. This has been an issue for me for a >>while, but it's not specific to Cygwin. I've tried the cmd, rxvt, and >>putty, all with similar results (only in putty, the corrupted characters >>only take up 1 character space, whereas in cmd and rxvt, they become >>two.) I tried setting the TERM on the remote host to vt100, vt102, rxvt, >>and xterm, all to no avail. All other apps (vim, emacs, screen, etc.) >>work just fine, but not man. I don't have a Linux box to try this on, >>but does anybody know what's causing this? Thanks in advacne. > > > Does "less" work properly? If not, make sure you have the right terminal > settings (csh uses "term", not "TERM", BTW). If it does, man may use a > special pager program that doesn't play well with the "cygwin" terminal > type. Try running "PAGER='less -isrRe' man smth", and see if that helps. > If so, check the man.conf file on the remote system. > Igor -- 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/