summaryrefslogtreecommitdiffstats
path: root/usr.bin/catman/catman.c
diff options
context:
space:
mode:
authorru <ru@FreeBSD.org>2002-10-11 09:16:24 +0000
committerru <ru@FreeBSD.org>2002-10-11 09:16:24 +0000
commit683dd9f551a74e443fa4b4463cf8c132026964b3 (patch)
treee62b9d6a07d5b0978980e074c091dbc18b022628 /usr.bin/catman/catman.c
parent63577f1c09da75d1887c14adf16f5755dc4290e8 (diff)
downloadFreeBSD-src-683dd9f551a74e443fa4b4463cf8c132026964b3.zip
FreeBSD-src-683dd9f551a74e443fa4b4463cf8c132026964b3.tar.gz
Groff 1.18.1 comes in with ANSI color support, enabled by default.
In "nroff" mode, italic font renders as an underlined text, which makes it indistinguishable from the bold text on color monitors (cons25 terminal type), yet it requires the less(1)'s -R option. (Refer to the new grotty(1) manpage for details.) So turn off the color support for now (when generating catpages), until we figure out what do we do with this new feature. I have a patch for grotty(1) that tells it to use the "reverse video" attribute to render the italic font. Once this is accepted, we can turn color support back on (if there won't be any objections from the community).
Diffstat (limited to 'usr.bin/catman/catman.c')
-rw-r--r--usr.bin/catman/catman.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/catman/catman.c b/usr.bin/catman/catman.c
index ff53666..486204d 100644
--- a/usr.bin/catman/catman.c
+++ b/usr.bin/catman/catman.c
@@ -446,7 +446,7 @@ process_page(char *mandir, char *src, char *cat, int src_gzipped)
}
snprintf(tmp_file, sizeof tmp_file, "%s.tmp", cat);
snprintf(cmd, sizeof cmd,
- "%scat %s | tbl | nroff -T%s -man | col | gzip -cn > %s.tmp",
+ "%scat %s | tbl | nroff -c -T%s -man | col | gzip -cn > %s.tmp",
src_gzipped ? "z" : "", src, nroff_device, cat);
if (system(cmd) != 0)
err(1, "formatting pipeline");
OpenPOWER on IntegriCloud