bug-ncurses
[Top][All Lists]
Advanced

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

Re: compilation problem


From: Thomas Dickey
Subject: Re: compilation problem
Date: Sat, 25 Feb 2006 20:24:34 -0500 (EST)

On Sun, 26 Feb 2006, Folkert van Heusden wrote:

On slackware 10.2 I try to compile the latest ncruses 5.5 from the site:
CFLAGS="-O2 -march=pentium3" ./configure --enable-colorfgbg --enable-ext-colors
You can only get extended colors for the wide-character flavor, as noted
in INSTALL:
....
        encoded.  This applies only to the wide-character (--enable-widec)

Oh darn.
Ok, got it to compile :-) Also test/ncurses (option d) gives nice
colors.

yes - that, and the option C screen are the ones I used for testing
(which is why option C provides for scrolling).

Now there's only an implementation issue; i can't get it to work.

#include <ncurses.h>

int main(int argc, char *argv[])
{
        start_color();
        if (!can_change_color())
                return 1;

        init_color(1, 11, 11, 11);
        init_pair(6, 1, COLOR_BLACK);
        attron(COLOR_PAIR(6));
        wprintw(stdscr, "test\n");
        getch();

        return 0;
}

hmm - no time for debugging it at the moment.  But some ideas: I've
done most of the testing for this feature using color_set() rather
than the masking (other than checking that attron, etc., work properly).
So we might find a bug.  I don't see offhand anything wrong with the
test case - will look into it.

Compiling it with -lncursesw. Output now is NOT darkgray on black
but red(!) on black instead.
Running it with TERM=xterm-256color ./a.out    <- this works for test/ncurses.


Folkert van Heusden

--
----------------------------------------------------------------------
Phone: +31-6-41278122, PGP-key: 1F28D8AE, www.vanheusden.com


--
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net




reply via email to

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