This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Man pages messed up when viewed over SSH


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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]