From owner-freebsd-hackers Tue Jan 9 0:36: 9 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from ringworld.nanolink.com (ringworld.nanolink.com [195.24.48.189]) by hub.freebsd.org (Postfix) with SMTP id A3FD537B400 for ; Tue, 9 Jan 2001 00:35:47 -0800 (PST) Received: (qmail 3954 invoked by uid 1000); 9 Jan 2001 08:34:34 -0000 Date: Tue, 9 Jan 2001 10:34:34 +0200 From: Peter Pentchev To: Kazutaka YOKOTA Cc: freebsd-hackers@FreeBSD.org Subject: Re: escape sequence for 'Ic' terminal capability Message-ID: <20010109103434.E2550@ringworld.oblivion.bg> Mail-Followup-To: Kazutaka YOKOTA , freebsd-hackers@FreeBSD.org References: <20010109100501.C2550@ringworld.oblivion.bg> <200101090832.RAA08905@zodiac.mech.utsunomiya-u.ac.jp> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <200101090832.RAA08905@zodiac.mech.utsunomiya-u.ac.jp>; from yokota@zodiac.mech.utsunomiya-u.ac.jp on Tue, Jan 09, 2001 at 05:32:29PM +0900 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 :) G'luck, Peter -- This sentence contradicts itself - or rather - well, no, actually it doesn't! > >Hi, > > > >I'm thinking of messing with the syscons ioctl handler to allow setting > >of color values - all EGA- and VGA-compatible video controllers allow this. > >The idea is to later define my termcap(5) entry to let ncurses deal with > >color setting. > > > >termcap(5) lists the 'cc' - 'can change color' and 'Ic' - 'initialize color' > >capabilities. Setting the boolean 'cc' is easy, 'Ic' however presents a bit > >of a problem to me - does anyone know what it is set to on any other terms > >so I can keep a bit of compatibility here, or do I just randomly pick an esc > >sequence, and lead on a happy existence until someone else defines this same > >esc sequence to do something else? :) > > > >G'luck, > >Peter > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-hackers" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message