SourceForge has been redesigned. Learn more.
Close

#53 background

closed-invalid
None
5
2007-05-14
2007-04-11
Anonymous
No

When I set the window colors with color_set, for some reason newline and 'clear' insist on a black background. How may I keep the entire window coloured?

Sincerely,

Macoln

macolnmail@yahoo.ca

Discussion

  • William McBrine

    William McBrine - 2007-04-12

    Logged In: YES
    user_id=27933
    Originator: NO

    bkgdset() or bkgd().

    This is not a bug, but I'll take a closer look at what other implementations do. As you may have noticed, color support was kind of tacked-on to curses, and it's awkward to use.

     
  • Nobody/Anonymous

    Logged In: NO

    I tried bkgd() and bkgdset() but all I could get was the window filled with a different ascii chars. Thanks for looking into it, we're working on fully implementing PDcurses into the console mode of Reva Forth, a programming language.

    www.ronware.org/reva

    Macoln

     
  • William McBrine

    William McBrine - 2007-04-14

    Logged In: YES
    user_id=27933
    Originator: NO

    You have to use "bkgd(COLOR_PAIR(n))" to set the color (contrast with "color_set(n, NULL)" -- no COLOR_PAIR() macro is used).

     
  • William McBrine

    William McBrine - 2007-04-20
    • status: open --> closed-invalid
     
  • Nobody/Anonymous

    Logged In: NO

    Thanks, I didn't know about COLOR_PAIR, that did the trick.

     
  • William McBrine

    William McBrine - 2007-05-14
    • assigned_to: nobody --> wmcbrine