From owner-freebsd-hackers Tue Jan 9 1:17: 9 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from outmail.utsunomiya-u.ac.jp (outmail.utsunomiya-u.ac.jp [160.12.196.3]) by hub.freebsd.org (Postfix) with ESMTP id E995037B69F for ; Tue, 9 Jan 2001 01:16:49 -0800 (PST) Received: from zodiac.mech.utsunomiya-u.ac.jp (IDENT:3mBy/DHRJEBvHmxnc15St+2n/ZfPzKP0@zodiac.mech.utsunomiya-u.ac.jp [160.12.42.1]) by outmail.utsunomiya-u.ac.jp (8.11.0/3.7Wpl2) with ESMTP id f099GlH09050; Tue, 9 Jan 2001 18:16:48 +0900 (JST) Received: from zodiac.mech.utsunomiya-u.ac.jp (IDENT:JnHT+7U3/acrb0dSKtlryZkaWwrFzjm6@zodiac.mech.utsunomiya-u.ac.jp [160.12.42.1]) by zodiac.mech.utsunomiya-u.ac.jp (8.9.3+3.2W/3.7W/zodiac-May2000) with ESMTP id SAA09223; Tue, 9 Jan 2001 18:24:31 +0900 (JST) Message-Id: <200101090924.SAA09223@zodiac.mech.utsunomiya-u.ac.jp> To: Peter Pentchev Cc: freebsd-hackers@FreeBSD.org, yokota@zodiac.mech.utsunomiya-u.ac.jp Subject: Re: escape sequence for 'Ic' terminal capability In-reply-to: Your message of "Tue, 09 Jan 2001 10:34:34 +0200." <20010109103434.E2550@ringworld.oblivion.bg> References: <20010109100501.C2550@ringworld.oblivion.bg> <200101090832.RAA08905@zodiac.mech.utsunomiya-u.ac.jp> <20010109103434.E2550@ringworld.oblivion.bg> Date: Tue, 09 Jan 2001 18:24:30 +0900 From: Kazutaka YOKOTA Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG >On Tue, Jan 09, 2001 at 05:32:29PM +0900, Kazutaka YOKOTA wrote: >> syscons is already capable of changing forground and background colors >> via escape sequences. Is it not sufficient for your intended >> application? >> >> Kazu >> > >Since I received the same question in private mail more than once, >I guess I'll have to clarify. What I'm after is not exactly color >changes, but *palette* changes - changing the RGB/HLS components >of an existing color index, in order to display a new color. > >I'm writing a full-screen interactive console application (and yes, >it has to be a console app for many reasons). One of the design >requirements is a customizable palette, so users can have some say >about what they'll be staring at for hours day after day :) In that case, have you looked at ioctls defined in /usr/include/sys/fbio.h: FBIO_GETPALETTE and FBIO_SETPALETTE? Kazu To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message