[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: about terminfo and xterm

From: Thomas Dickey
Subject: Re: about terminfo and xterm
Date: Mon, 20 Aug 2007 19:25:10 -0400 (EDT)

On Mon, 20 Aug 2007, chinlu chinawa wrote:

Hello Thomas,

I wanted to ask you if there is any function which
allows me to get rgb compontents out of the original
terminal's color pair while using terminfo?

I've seen there's one for ncurses, which is
`color_content', and also (in the same file,

That only works for the data set via init_color(), and isn't going to
help with ANSI colors...

base/lib_color.c) have seen `default_fg' and
`default_bg', though I haven't tried to see whether
they work when not using it (there is a
NCURSES_EXT_FUNCS clobbering them)

Another question I've willing to ask is about xterm,
there is a control sequence which allows to set/unset
a X property. It says this:

Ps = 3  -> Set X property on top-level window. Pt
          should be in the form "prop=value", or just
          "prop" to delete the property

Can you put me an example of such a property? I don't
seem to be able to match it with anything I've read
within the xlib manual or what I've tested.

That's calling XSetTextProperty() or XDeleteProperty().
google shows me this for instance:

SGI TPL View (XGetIconName)DESCRIPTION The XSetWMIconName convenience function calls XSetTextProperty to set the WM_ICON_NAME property. The XGetWMIconName convenience function calls ... techpubs.sgi.com/.../usr/share/ catman/p_man/cat3/X11/XGetIconName.z - 12k - Cached - Similar pages

Thomas E. Dickey

reply via email to

[Prev in Thread] Current Thread [Next in Thread]