Unix Programming - man page messed up when on ssh

This is Interesting: Free IT Magazines  
Home > Archive > Unix Programming > October 2006 > man page messed up when on ssh





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author man page messed up when on ssh
jagon.cn@gmail.com

2006-10-23, 1:16 pm

i am using putty as my ssh client to work on centOS 4 linux box, but
when i try to use man to view some document , the page is always
messed up with some very weird characters. i surfed on the internet,
and found that some people said that to edit /etc/man.conf like below
:

#TROFF groff -Tps -man ##BEFORE
TROFF /usr/bin/groff -Tascii -man ##AFTER
#NROFF nroff --legacy NROFF_OLD_CHARSET -man ## BEFORE
NROFF /usr/bin/nroff -Tascii -man ##AFTER

but it still does not work out


Can anyone provide some help

Thanks

Jay

Barry Margolin

2006-10-24, 1:23 am

In article <1161616236.094161.288630@b28g2000cwb.googlegroups.com>,
"jagon.cn@gmail.com" <jagon.cn@gmail.com> wrote:

> i am using putty as my ssh client to work on centOS 4 linux box, but
> when i try to use man to view some document , the page is always
> messed up with some very weird characters. i surfed on the internet,
> and found that some people said that to edit /etc/man.conf like below
> :
>
> #TROFF groff -Tps -man ##BEFORE
> TROFF /usr/bin/groff -Tascii -man ##AFTER
> #NROFF nroff --legacy NROFF_OLD_CHARSET -man ## BEFORE
> NROFF /usr/bin/nroff -Tascii -man ##AFTER
>
> but it still does not work out
>
>
> Can anyone provide some help
>
> Thanks
>
> Jay


The value of the TERM environment variable doesn't match the emulation
that PuTTY is doing.

--
Barry Margolin, barmar@alum.mit.edu
Arlington, MA
*** PLEASE post questions in newsgroups, not directly to me ***
*** PLEASE don't copy me on replies, I'll read them in the group ***
Nils O. SelÄsdal

2006-10-24, 1:23 am

jagon.cn@gmail.com wrote:
> i am using putty as my ssh client to work on centOS 4 linux box, but
> when i try to use man to view some document , the page is always
> messed up with some very weird characters. i surfed on the internet,
> and found that some people said that to edit /etc/man.conf like below
> :
>
> #TROFF groff -Tps -man ##BEFORE
> TROFF /usr/bin/groff -Tascii -man ##AFTER
> #NROFF nroff --legacy NROFF_OLD_CHARSET -man ## BEFORE
> NROFF /usr/bin/nroff -Tascii -man ##AFTER
>
> but it still does not work out
>
>
> Can anyone provide some help

Make sure the character sets configured on the linux end matches
putty. Likely your CentOS defaults to UTF-8 - set putty to the same.
Binary

2006-10-25, 1:33 am

Try export LC_ALL=C
jagon.cn@gmail.com wrote:
> i am using putty as my ssh client to work on centOS 4 linux box, but
> when i try to use man to view some document , the page is always
> messed up with some very weird characters. i surfed on the internet,
> and found that some people said that to edit /etc/man.conf like below
> :
>
> #TROFF groff -Tps -man ##BEFORE
> TROFF /usr/bin/groff -Tascii -man ##AFTER
> #NROFF nroff --legacy NROFF_OLD_CHARSET -man ## BEFORE
> NROFF /usr/bin/nroff -Tascii -man ##AFTER
>
> but it still does not work out
>
>
> Can anyone provide some help
>
> Thanks
>
> Jay


Andrei Voropaev

2006-10-26, 7:16 am

On 2006-10-23, jagon.cn@gmail.com <jagon.cn@gmail.com> wrote:
> i am using putty as my ssh client to work on centOS 4 linux box, but
> when i try to use man to view some document , the page is always
> messed up with some very weird characters. i surfed on the internet,


Have you tried to figure out what should be your TERM? Usually this kind
of problem indicates that TERM setting on linux box don't match those of
your terminal emulator program. For example by default Linux uses
"linux" as terminal, but many emulators support only vt100 and alike.

--
Minds, like parachutes, function best when open
Binary

2006-10-27, 1:24 am


Andrei Voropaev wrote:
> On 2006-10-23, jagon.cn@gmail.com <jagon.cn@gmail.com> wrote:
>
> Have you tried to figure out what should be your TERM? Usually this kind
> of problem indicates that TERM setting on linux box don't match those of
> your terminal emulator program. For example by default Linux uses
> "linux" as terminal, but many emulators support only vt100 and alike.
>

It seems the problem is charset, not TERM, for non-English users.
> --
> Minds, like parachutes, function best when open


Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com