Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 31 Jul 2011 05:43:39 -0700
From:      Xin LI <delphij@delphij.net>
To:        d@delphij.net, ru@FreeBSD.org,  FreeBSD Current <freebsd-current@freebsd.org>
Subject:   Re: weekly_catman not generating the right result?
Message-ID:  <4E354DFB.1020206@delphij.net>
In-Reply-To: <20110731121732.GB11991@acme.spoerlein.net>
References:  <4E3510CC.8090300@delphij.net> <20110731121732.GB11991@acme.spoerlein.net>

next in thread | previous in thread | raw e-mail | index | archive | help
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

On 07/31/11 05:17, Ulrich Spörlein wrote:
> On Sun, 2011-07-31 at 01:22:36 -0700, Xin LI wrote:
>> Hi,
>> 
>> I just noticed that weekly_catman is not generating the right
>> result, e.g. instead of a highlight NAME, it gives 1mNAME0m (looks
>> like the escape character is missing here).
>> 
>> Is this a known issue?
> 
> Now it is :)
> 
> This is due to the recent changes that made groff emit ANSI
> sequences and catman(1) is still putting col(1) in the pipe, which is
> not really required and gobbles up part of the escape sequences.
> 
> Please try the attached patch. Thanks.

Thanks, that fixes the problem.

Note that I noticed that setting PAGER to less won't work.  Looking at
my 8.2-RELEASE system, the rendered catpages are using ^H when
highlighting while on -CURRENT it's an escape sequence (but I didn't see
any change to nroff script nor catman itself)...

Cheers,
- -- 
Xin LI <delphij@delphij.net>	https://www.delphij.net/
FreeBSD - The Power to Serve!		Live free or die
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.17 (FreeBSD)

iQEcBAEBCAAGBQJONU37AAoJEATO+BI/yjfBwwkH/2lBNu/Qk+kfYqlknmBN6/f6
1JfwR/oL8ByYwc1wfDVNH9dHFgwwsmkwOja+InJNeSD62Vld8A5kLw7+AopWvsWu
WRSu24qq6mP4l82K9mnClHgHEnQxmXa3AIbYcGqiTF1T8AqzVp9iqZfHnC6FDcNI
l7EQZZdp3x2Uvx5ATPuTsPaZbWs5gdUC2gKEWBVlUzoIK/U2zQtBw92HbYuOuMcR
dViuYNJqetuABre+m0IqslQktmd3/pIwwlJJVoDJ3KYG2SFqZTS1a4cM8dS+dX1U
8JnICR1KfkKiwKyh0QSpnoTtgy2WoCVBb5gwzXofsBZujkUbMCtkChgSxf0ulM8=
=pw5b
-----END PGP SIGNATURE-----



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4E354DFB.1020206>