From owner-cvs-all Sun Jun 4 17:54:14 2000 Delivered-To: cvs-all@freebsd.org Received: from florence.pavilion.net (florence.pavilion.net [212.74.0.25]) by hub.freebsd.org (Postfix) with ESMTP id 7981637B62B; Sun, 4 Jun 2000 17:54:09 -0700 (PDT) (envelope-from joe@pavilion.net) Received: from genius.systems.pavilion.net (genesis.tao.org.uk [194.242.131.254]) by florence.pavilion.net (8.9.3/8.8.8) with ESMTP id BAA22460; Mon, 5 Jun 2000 01:54:05 +0100 (BST) (envelope-from joe@pavilion.net) Received: by genius.systems.pavilion.net (Postfix, from userid 100) id 91E7CA6; Mon, 5 Jun 2000 01:54:30 +0100 (BST) Date: Mon, 5 Jun 2000 01:54:30 +0100 From: Josef Karthauser To: Doug Barton Cc: Robert Watson , Warner Losh , "Matthew N. Dodd" , cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/bin/ls extern.h ls.1 ls.c ls.h print.c Message-ID: <20000605015430.K620@pavilion.net> References: <393AE783.2C6FA3A8@gorean.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2i In-Reply-To: <393AE783.2C6FA3A8@gorean.org>; from DougB@gorean.org on Sun, Jun 04, 2000 at 04:34:27PM -0700 X-NCC-RegID: uk.pavilion Organisation: Pavilion Internet plc, Lees House, 21-23 Dyke Road, Brighton, England Phone: +44-845-333-5000 Fax: +44-845-333-5001 Mobile: +44-403-596893 Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Sun, Jun 04, 2000 at 04:34:27PM -0700, Doug Barton wrote: > Robert Watson wrote: > > > > So this leads me to the obvious question: if terminal information is not > > available, why would we want to print out color codes? Is it not > > acceptable to just not print in color when in single-user mode, or if the > > termcap database is unavailable? > > Acceptable, sure, but not really necessary. The ANSI codes work for the > majority of "terminals," including cons25. Since the user has to > explicitly enable the option to display color, if for some odd reason > (most likely a serial console) the fallback ANSI codes don't work, they > can just disable color. Think about it this way. Which is going to cause > the most -questions e-mails? "Why doesn't my color ls work in single > user mode?" or "Why doesn't my color ls work when I use my 20 year old > Wyse 50 hooked up as a serial console?" (What have I started!) I'm inclined to agree with Robert here, and I have a patch almost ready to roll that does just that. Doug, how often is one in single user mode? Joe To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message