Re: ncurses background color
From: Thomas Dickey (dickey_at_saltmine.radix.net)
Date: 01/29/05
- Previous message: Heny Townsend: "PATH_MAX true POSIX size?"
- In reply to: Average Joe: "ncurses background color"
- Next in thread: Average Joe: "Re: ncurses background color"
- Reply: Average Joe: "Re: ncurses background color"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sat, 29 Jan 2005 00:22:56 -0000
Average Joe <joe@use.net> wrote:
> Users have different background colors in their xterm. How can my
> ncurses program determine the background color so that I can set my
> color_pairs to have the users default background?
You cannot determine it - but you can call use_default_colors() and
use the related extension for init_pair(), e.g., set the color to -1.
-- Thomas E. Dickey http://invisible-island.net ftp://invisible-island.net
- Previous message: Heny Townsend: "PATH_MAX true POSIX size?"
- In reply to: Average Joe: "ncurses background color"
- Next in thread: Average Joe: "Re: ncurses background color"
- Reply: Average Joe: "Re: ncurses background color"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]