Date: Mon, 25 Sep 1995 17:28:11 -0700 (MST) From: Terry Lambert <terry@lambert.org> To: kuku@gilberto.physik.RWTH-Aachen.DE Cc: bemar@servicom.es, questions@FreeBSD.ORG Subject: Re: Using color in C Message-ID: <199509260028.RAA06313@phaeton.artisoft.com> In-Reply-To: <199509251921.UAA06649@gilberto.physik.RWTH-Aachen.DE> from "Christoph Kukulies" at Sep 25, 95 08:21:14 pm
next in thread | previous in thread | raw e-mail | index | archive | help
> 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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199509260028.RAA06313>