curses and color

Discussion in 'Perl' started by Skeleton Man, May 25, 2004.

  1. Skeleton Man

    Skeleton Man Guest

    I'm trying to use the Curses.pm module for an interface to the curses
    library (ncurses) on my freebsd based system.
    The problem is when I try and use the color_set() function to set the
    background/foreground color pair.

    The following code produces the error "curses constant 'color_set' is not
    defined by your vendor":

    #!/usr/bin/perl

    use Curses;
    $win = new Curses;

    start_color();

    $win->color_set(1,NULL);
    $win->addstr(20, 2, "This is a test");
    $win->refresh;
    endwin;

    I have checked the man page for ncurses and it clearly shows color_set() as
    being supported.
    Also the documentation for Curses.pm says anything supported by your curses
    library can be used with it.

    I need raw access to curses and not something like curses::widgets, as I
    want to draw everything myself.. (and not have a pre-made box or button..)

    Any ideas ?


    Regards,
    Chris
     
    Skeleton Man, May 25, 2004
    #1
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. moondaddy
    Replies:
    3
    Views:
    41,253
    moondaddy
    Apr 28, 2004
  2. PJ6
    Replies:
    4
    Views:
    5,158
  3. Andrew Arace

    BGR Color to Java Color

    Andrew Arace, Sep 13, 2003, in forum: Java
    Replies:
    7
    Views:
    8,611
    Stephen Gilbert
    Sep 16, 2003
  4. Niels Dybdahl

    Color.white vs. Color.WHITE

    Niels Dybdahl, Oct 6, 2004, in forum: Java
    Replies:
    3
    Views:
    641
    Chris Smith
    Oct 6, 2004
  5. Matt Garman
    Replies:
    0
    Views:
    401
    Matt Garman
    Nov 2, 2004
  6. Jean-Paul Calderone
    Replies:
    2
    Views:
    608
    Joel Hedlund
    Feb 9, 2006
  7. ChrisC
    Replies:
    2
    Views:
    564
    Roedy Green
    Aug 23, 2007
  8. Kamaljeet Saini
    Replies:
    0
    Views:
    881
    Kamaljeet Saini
    Feb 13, 2009
Loading...