Date: Mon, 15 Jan 2001 03:05:32 -0800 (PST) From: opentrax@email.com To: roam@orbitel.bg Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: more than 8 colors in console? Message-ID: <200101151105.DAA02942@spammie.svbug.com> In-Reply-To: <20010104185903.C545@ringworld.oblivion.bg>
next in thread | previous in thread | raw e-mail | index | archive | help
On 4 Jan, Peter Pentchev wrote: > Hi, > > I'm writing a console app, which needs to be quite colorful, and to use > customizable colors. Unfortunately, with ncurses, right after start_color(), > I get a can_change_color() == FALSE. Besides, COLORS is defined to as many > as the Co termcap capability, which is 8. > > Well, all (well, most ;) PC video adapters can display up to 16 colors, > if I decide to drop the bold/blinking capabilities, and define all colors > as suits my taste. Is there a way to define more than 8 colors, and.. > uh.. is there a way to define *any* colors at all? :) > Yes, there are many ways. My favorite is to use ANSI escape codes. Althought I'm sure there are other codes that would work. I think curses can do it. Someone correct me if I'm wrong. Jessem. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200101151105.DAA02942>