From 683dd9f551a74e443fa4b4463cf8c132026964b3 Mon Sep 17 00:00:00 2001 From: ru Date: Fri, 11 Oct 2002 09:16:24 +0000 Subject: 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). --- gnu/usr.bin/man/Makefile.inc | 2 +- share/mk/bsd.man.mk | 2 +- usr.bin/catman/catman.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/gnu/usr.bin/man/Makefile.inc b/gnu/usr.bin/man/Makefile.inc index 7da63dc..26f194d 100644 --- a/gnu/usr.bin/man/Makefile.inc +++ b/gnu/usr.bin/man/Makefile.inc @@ -9,7 +9,7 @@ pager= more -s manpath_config_file= /etc/manpath.config troff= /usr/bin/groff -S -man # -Tascii or localized encoding added automatically -nroff= /usr/bin/groff -S -Wall -mtty-char -man +nroff= /usr/bin/groff -P-c -S -Wall -mtty-char -man apropos= /usr/bin/apropos whatis= /usr/bin/whatis eqn= /usr/bin/eqn diff --git a/share/mk/bsd.man.mk b/share/mk/bsd.man.mk index 9cac378..584f2ff 100644 --- a/share/mk/bsd.man.mk +++ b/share/mk/bsd.man.mk @@ -57,7 +57,7 @@ MINSTALL?= ${INSTALL} -o ${MANOWN} -g ${MANGRP} -m ${MANMODE} CATDIR= ${MANDIR:H:S/$/\/cat/} CATEXT= .cat -MROFF_CMD?= groff -Tascii -mtty-char -man -t +MROFF_CMD?= groff -P-c -Tascii -mtty-char -man -t MCOMPRESS_CMD?= ${COMPRESS_CMD} MCOMPRESS_EXT?= ${COMPRESS_EXT} 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"); -- cgit v1.1