From owner-cvs-all Tue Oct 15 19:31: 4 2002 Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EEF8737B401; Tue, 15 Oct 2002 19:31:01 -0700 (PDT) Received: from mail.nsu.ru (mx.nsu.ru [193.124.215.71]) by mx1.FreeBSD.org (Postfix) with ESMTP id EAA9A43E88; Tue, 15 Oct 2002 19:31:00 -0700 (PDT) (envelope-from danfe@regency.nsu.ru) Received: from drweb by mail.nsu.ru with drweb-scanned (Exim 3.20 #1) id 181dxZ-0005Ix-00; Wed, 16 Oct 2002 09:30:57 +0700 Received: from regency.nsu.ru ([193.124.210.26]) by mail.nsu.ru with esmtp (Exim 3.20 #1) id 181dxX-0005Hi-00; Wed, 16 Oct 2002 09:30:55 +0700 Received: from regency.nsu.ru (localhost [127.0.0.1]) by regency.nsu.ru (8.12.6/8.12.6) with ESMTP id g9G2Uxrk086204; Wed, 16 Oct 2002 09:30:59 +0700 (NOVST) (envelope-from danfe@regency.nsu.ru) Received: (from danfe@localhost) by regency.nsu.ru (8.12.6/8.12.6/Submit) id g9G2UxdI086112; Wed, 16 Oct 2002 09:30:59 +0700 (NOVST) Date: Wed, 16 Oct 2002 09:30:59 +0700 From: Alexey Dokuchaev To: Ruslan Ermilov Cc: Giorgos Keramidas , "Greg 'groggy' Lehey" , Tony Finch , cvs-committers@freebsd.org, cvs-all@freebsd.org Subject: Re: Coloured manpages (was: Re: cvs commit: src/gnu/usr.bin/man Makefile.inc src/share/mk bsd.man.mk src/usr.bin/catman catman.c) Message-ID: <20021016023059.GD72251@regency.nsu.ru> References: <200210110916.g9B9GP8f064951@freefall.freebsd.org> <20021012040759.A23338@chiark.greenend.org.uk> <20021012155812.GA36832@sunbay.com> <20021013003257.GA64063@wantadilla.lemis.com> <20021013081038.GA14919@sunbay.com> <20021015094930.GB2083@hades.hell.gr> <20021015143304.GB12329@sunbay.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20021015143304.GB12329@sunbay.com> User-Agent: Mutt/1.4i X-Envelope-To: ru@freebsd.org, keramida@ceid.upatras.gr, grog@freebsd.org, dot@dotat.at, cvs-committers@freebsd.org, cvs-all@freebsd.org Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Tue, Oct 15, 2002 at 05:33:04PM +0300, Ruslan Ermilov wrote: > On Tue, Oct 15, 2002 at 12:49:31PM +0300, Giorgos Keramidas wrote: > > On 2002-10-13 11:10, Ruslan Ermilov wrote: > > > On Sun, Oct 13, 2002 at 10:02:57AM +0930, Greg 'groggy' Lehey wrote: > > > > > > > > I've been waiting for groff 1.18 exactly because of the colour > > > > support. I can understand that it's a nuisance under the > > > > circumstances you describe, but I would be disappointed to see it > > > > turned off altogether. There must be some way to just not make it the > > > > default. Or is that what you're doing? > > > > > > Yes. I've sent the patch for grotty(1) that allows it to use the > > > "reverse video" attribute to render the italic font in the nroff > > > mode. After this is accepted (and I'm sure it will be), I plan > > > to import the patch and turn the color support back on. > > > > I mostly use cons25 terminals to fire up screen(1) and this is a local > > change that I keep around in my .screenrc files: > > > > termcap cons* us=\E[36m:ue=\E[m > > > > The added termcap capabilities make underlined text come up as cyan, > > which makes manpages a lot more readable than reverse video (I've > > tried using us=\E[7m for a while, but the results weren't very > > pleasing to the eye). If it's not a rather hard thing to support, I'd > > really vote for keeping the colour support enabled, instead of using > > reverse video for underlined/italic text in nroff. > > > > If I'm completely out of topic and the changes are not going to force > > reverse video instead of the old underline attribute for italicised > > text, please ignore this... I haven't had the time to look at the > > changes yet, since my latest buildworld is still running. > > > The problem is that without these hacks, "italic" fonts appear just > like "bold", which worsens the quality of the generated catpages: > both .Cm and .Ar, for example, look the same. And we certainly do > not want our manpages look bad on our default terminal, do we? > > grotty(1) renders italic fonts with the help of the underlined > attribute. syscons(4) does not distinguish between bold and > underlined attributes. The offending code is in sys/dev/syscons/ > scterm-sc.c:mask2attr(). The are three options here: > > 1. Keep the color support turned off for catpages and man(1). > 2. Fix the syscons(4) to render underlined attribute in some way > distinguishable from "bold". > 3. Turn the color support back on but pass the -r option to > grotty(1) which tells it to use the "reverse video" attribute > to render italic fonts. This keeps the "cons25" output the > old way, but worsens the "xterm" output, which will now render > the underlined text as "reverse". Could we patch /usr/share/misc/termcap maybe (cons25w entry)? This will leave xterm along (since it does play nicely already) and console output will get prettier. ./danfe To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message