Re: ncurses background color

From: Thomas Dickey (dickey_at_saltmine.radix.net)
Date: 01/29/05

  • Next message: Thomas Dickey: "Re: ncurses getch SIGWINCH"
    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
    

  • Next message: Thomas Dickey: "Re: ncurses getch SIGWINCH"