From owner-freebsd-doc@FreeBSD.ORG Mon Sep 3 23:45:12 2007 Return-Path: Delivered-To: freebsd-doc@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 23E1716A418 for ; Mon, 3 Sep 2007 23:45:12 +0000 (UTC) (envelope-from keramida@FreeBSD.org) Received: from igloo.linux.gr (igloo.linux.gr [62.1.205.36]) by mx1.freebsd.org (Postfix) with ESMTP id 968F413C46B for ; Mon, 3 Sep 2007 23:45:11 +0000 (UTC) (envelope-from keramida@FreeBSD.org) Received: from kobe.laptop (dialup188.ach.sch.gr [81.186.70.188]) (authenticated bits=128) by igloo.linux.gr (8.14.1/8.14.1/Debian-8) with ESMTP id l83NioGk025023 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Tue, 4 Sep 2007 02:45:01 +0300 Received: from kobe.laptop (kobe.laptop [127.0.0.1]) by kobe.laptop (8.14.1/8.14.1) with ESMTP id l83Nijj3003135; Tue, 4 Sep 2007 02:44:45 +0300 (EEST) (envelope-from keramida@FreeBSD.org) Received: (from keramida@localhost) by kobe.laptop (8.14.1/8.14.1/Submit) id l83NiiVQ003134; Tue, 4 Sep 2007 02:44:44 +0300 (EEST) (envelope-from keramida@FreeBSD.org) Date: Tue, 4 Sep 2007 02:44:43 +0300 From: Giorgos Keramidas To: t_ziel@wp.pl Message-ID: <20070903234443.GB3011@kobe.laptop> References: <46dc48f5ec62f@wp.pl> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <46dc48f5ec62f@wp.pl> X-Hellug-MailScanner: Found to be clean X-Hellug-MailScanner-SpamCheck: not spam, SpamAssassin (not cached, score=-4.08, required 5, autolearn=not spam, ALL_TRUSTED -1.80, AWL 0.32, BAYES_00 -2.60) X-Hellug-MailScanner-From: keramida@freebsd.org X-Spam-Status: No Cc: freebsd-doc@FreeBSD.org Subject: Re: man pages improvement clarification X-BeenThere: freebsd-doc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Documentation project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 Sep 2007 23:45:12 -0000 On 2007-09-03 19:48, t_ziel wrote: > Hello! > Thank you for answering my post "man pages improvement". > > Unfortunately: > 1. I am not talking about web interface > 2. I am not talking about browsing man pages in X-window environment Nice. I thought this was the case, but I had to ask. > I am talking about browsing man pages in pure FreeBSD installation > without configured X-window environment. Sure. I got it now :) > Please see this screenshot: > http://ezine.daemonnews.org/200210/mutt-main-bw.gif > "52 Sep 20 Jaime Bozza (...)" -- perfect example that is "white > background" I mentioned. (Is it reverse video that you mentioned?) Yes, this is the "reverse video" attribute I am referring to. In older terminal windows, which supported no color attributes, it wasn't possible to display colorful text. Even today, when connected through a serial console, it is not always possible to show colored text in FreeBSD. What you see is one of the few "simple" text attributes that many terminals (including older ones) support: bold text underlined text reverse video The last one is a "hack" which can be used to make parts of the text standa-out a bit, by reversing the foreground and background colors. Hence the name "reverse video". > Now my question: is it possible to configure FreeBSD's man pages > (without X-window) to look like (for example) > http://people.freebsd.org/~keramida/files/pkg_add.png ? > (out-of-the-box). This is imho more usable than current configuration. > How can I do that in console? I've done it in screen(1) sessions. I don't know if it is possible without *any* thirdparty program, but it should be possible. The setup I am using to make my console terminals show underlined text as "cyan" depends on screen(1), the popular terminal multiplexing program. In my ~/.screenrc file I have: termcap cons* us=\E[4m:ue=\E[m termcap xterm* us=\E[4m:ue=\E[m This overrides the "us" and "ue" terminal capability strings, so when a program tries to display underlined text using those capability strings, it basically uses a cyan foreground color. An alternative would be to use a local "termcap" to override these two terminal capability strings for "cons*" terminals. Maybe something like this would be useful for your setup too? If that is true, then this question is no longer "in topic" for freebsd-doc and we can move it to freebsd-questions or a similar list. Regards, Giorgos