On Wed, Sep 06, 2006 at 09:44:22AM +0000, Yakov Lerner wrote:
> On 9/6/06, Andrei A. Voropaev <[EMAIL PROTECTED]> wrote:
> >Hello!
> >
> >If I hit K in normal mode, then I get man page for the word I'm in. But
> >in gvim this does not quite work. First I get the warning "Terminal is
> >not fully functional", and then comes the man page with formatting like
> >this
> >
> >1mSYNOPSIS0m
> 
> I also get "Terminal is not fully functional", but otherwise, contents of
> the manpage looks normal. This is FC5 fedora core linux, vim7.0.86/gtk2.
> The message "Terminal is not fully functional" comes from 'less'
> pager, it seems.
> Try these things:
> 
> 1. export MANPAGER=more
>   or
>    set kp=man\ -P\ more
> 

Aha, that gave me an idea. After reading thru the man pages for man,
I've found that it passes the formatting to grotty program. The man page
for grotty says that newer version puts into the output escape sequences
for colors and bold/italic. These are the ones that cause problems for
col -b, since it does not recognize them. So col -b simply strips esc
codes leaving all those pesky 1m and 0m behind.

To overcome that problem one may add -c option in /etc/man.conf to the
command lines for NROFF TROFF and JNROFF.

Thank you for help

-- 
Minds, like parachutes, function best when open

Reply via email to