Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 16 Oct 2002 13:53:51 +0400
From:      "Andrey A. Chernov" <ache@nagual.pp.ru>
To:        Alexey Dokuchaev <danfe@nsu.ru>
Cc:        Ruslan Ermilov <ru@FreeBSD.org>, Giorgos Keramidas <keramida@ceid.upatras.gr>, "Greg 'groggy' Lehey" <grog@FreeBSD.org>, Tony Finch <dot@dotat.at>, 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:  <20021016095351.GB8009@nagual.pp.ru>
In-Reply-To: <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> <20021016023059.GD72251@regency.nsu.ru>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Oct 16, 2002 at 09:30:59 +0700, Alexey Dokuchaev wrote:
> 
> 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.

Any syscons or cons25 entry patch in this way will break color support,
occuping some valid colors to emulate missing underline. Occuping some
valid attribute (like now) is lesser evil for color-enabled application.

Better way is to NOT emulate it in any way. Termcap database is for
describing existen capabilities, not for emulating non-existen in
destructive way. Application must do emulation by itself. 

I.e. underline should be written to the file as

	<character>^H_

(in device-independent form) and browser (less) should emulate missing 
underline using some existent attribute or color.

-- 
Andrey A. Chernov
http://ache.pp.ru/

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message




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