From owner-freebsd-arch Sat Oct 19 6:50:46 2002 Delivered-To: freebsd-arch@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7393837B401; Sat, 19 Oct 2002 06:50:45 -0700 (PDT) Received: from nagual.pp.ru (pobrecita.freebsd.ru [194.87.13.42]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7E08C43E42; Sat, 19 Oct 2002 06:50:44 -0700 (PDT) (envelope-from ache@pobrecita.freebsd.ru) Received: from pobrecita.freebsd.ru (ache@localhost [127.0.0.1]) by nagual.pp.ru (8.12.6/8.12.6) with ESMTP id g9JDodnP038032; Sat, 19 Oct 2002 17:50:39 +0400 (MSD) (envelope-from ache@pobrecita.freebsd.ru) Received: (from ache@localhost) by pobrecita.freebsd.ru (8.12.6/8.12.6/Submit) id g9JDocZq038031; Sat, 19 Oct 2002 17:50:38 +0400 (MSD) (envelope-from ache) Date: Sat, 19 Oct 2002 17:50:38 +0400 From: "Andrey A. Chernov" To: Terry Lambert Cc: "M. Warner Losh" , ru@FreeBSD.ORG, arch@FreeBSD.ORG Subject: Re: color, again, in grotty Message-ID: <20021019135038.GA37956@nagual.pp.ru> References: <20021017.101833.110719994.imp@bsdimp.com> <20021018095026.GA3386@sunbay.com> <20021018.094801.123456703.imp@bsdimp.com> <3DB06A8B.E40B3004@mindspring.com> <20021018201919.GA15100@nagual.pp.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20021018201919.GA15100@nagual.pp.ru> User-Agent: Mutt/1.5.1i Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Full variant: Look at color 'ls' for example of proper colors implementation via termcap database. The same thing can be done via {n}curses if someone not want to deal with termcap/terminfo stuff. In addition of looking at TERM variable grotty should have an option to specify TERM variable at command line. Short variant: Grotty should have non-default option indicating that output device is capable to display ANSI colors. Making assumption that every thing support ANSI color is Linuxism, someone should explain this to groff developers. -- Andrey A. Chernov http://ache.pp.ru/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message