From owner-freebsd-questions Mon Sep 25 17:32:18 1995 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id RAA01737 for questions-outgoing; Mon, 25 Sep 1995 17:32:18 -0700 Received: from phaeton.artisoft.com (phaeton.Artisoft.COM [198.17.250.211]) by freefall.freebsd.org (8.6.12/8.6.6) with ESMTP id RAA01730 for ; Mon, 25 Sep 1995 17:32:15 -0700 Received: (from terry@localhost) by phaeton.artisoft.com (8.6.11/8.6.9) id RAA06313; Mon, 25 Sep 1995 17:28:11 -0700 From: Terry Lambert Message-Id: <199509260028.RAA06313@phaeton.artisoft.com> Subject: Re: Using color in C To: kuku@gilberto.physik.RWTH-Aachen.DE Date: Mon, 25 Sep 1995 17:28:11 -0700 (MST) Cc: bemar@servicom.es, questions@FreeBSD.ORG In-Reply-To: <199509251921.UAA06649@gilberto.physik.RWTH-Aachen.DE> from "Christoph Kukulies" at Sep 25, 95 08:21:14 pm X-Mailer: ELM [version 2.4 PL24] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Length: 695 Sender: owner-questions@FreeBSD.ORG Precedence: bulk > You can alsway use ANSI escape sequences a la: > > #!/bin/sh > in0="\033[0m" > in1="\033[1m" ^^^^^^^ -- ANSI escape sequences > sw0="\033[30m" > rt0="\033[31m" > gn0="\033[32m" > gb0="\033[33m" > bl0="\033[34m" > mg0="\033[35m" > cn0="\033[36m" > ws0="\033[37m" > sw1="\033[40m" > rt1="\033[41m" > gn1="\033[42m" > gb1="\033[43m" > bl1="\033[44m" > mg1="\033[45m" > cn1="\033[46m" > ws1="\033[47m" ^^^^^^^^ -- ISO escape sequences Plus they only pick colors between 0 and 7, not 0 and 15, so they won't get you the 16 colors you want. Terry Lambert terry@lambert.org --- Any opinions in this posting are my own and not those of my present or previous employers.