Re: escape sequence for 'Ic' terminal capability

2001-01-31 Thread Aleksandr A.Babaylov

Peter Pentchev writes:
> On Tue, Jan 09, 2001 at 10:05:01AM +0200, Peter Pentchev wrote:
> > 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? :)
> 
> OK, since I started this thread, I got several suggestions, mainly
> pointing me at the FBIO_{GET,SET}PALETTE console ioctl's.  I still
> need the 'Ic' capability to transfer the color information across
> network connections (yes, both machines will be running fbsd with
> identical kernel/userland local mods).
> 
> So my original question still stands: has anybody seen the 'Ic'
> capability actually used in some OS's termcap, so I can borrow
> the sequence with an eye on compatiblity, or has 'Ic' been just
> a nice idea that nobody has bothered to implement?
Look at http://www.tuxedo.org/~esr/terminfo/

-- 
@BABOLO  http://links.ru/


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message



Re: escape sequence for 'Ic' terminal capability

2001-01-31 Thread Peter Pentchev

On Tue, Jan 09, 2001 at 10:05:01AM +0200, Peter Pentchev wrote:
> 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? :)

OK, since I started this thread, I got several suggestions, mainly
pointing me at the FBIO_{GET,SET}PALETTE console ioctl's.  I still
need the 'Ic' capability to transfer the color information across
network connections (yes, both machines will be running fbsd with
identical kernel/userland local mods).

So my original question still stands: has anybody seen the 'Ic'
capability actually used in some OS's termcap, so I can borrow
the sequence with an eye on compatiblity, or has 'Ic' been just
a nice idea that nobody has bothered to implement?

G'luck,
Peter

-- 
This sentence every third, but it still comprehensible.


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message



Re: escape sequence for 'Ic' terminal capability

2001-01-09 Thread Peter Pentchev

On Tue, Jan 09, 2001 at 06:24:30PM +0900, Kazutaka YOKOTA wrote:
> 
> >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

Yes, I have, and I'm considering reusing that code, or possibly calling
it.  However, I still wonder why there isn't an escape sequence interface -
kinda hard to specify ioctl's in termcap(5) :)

-- 
G'luck,
Peter

-- 
This inert sentence is my body, but my soul is alive, dancing in the sparks of your 
brain.


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message



Re: escape sequence for 'Ic' terminal capability

2001-01-09 Thread Kazutaka YOKOTA


>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 [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message



Re: escape sequence for 'Ic' terminal capability

2001-01-09 Thread Peter Pentchev

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 [EMAIL PROTECTED]
> with "unsubscribe freebsd-hackers" in the body of the message
> 


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message



Re: escape sequence for 'Ic' terminal capability

2001-01-09 Thread Kazutaka YOKOTA

syscons is already capable of changing forground and background colors
via escape sequences.  Is it not sufficient for your intended
application?

Kazu

>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 [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message



escape sequence for 'Ic' terminal capability

2001-01-08 Thread Peter Pentchev

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

-- 
This sentence was in the past tense.


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message