[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: compilation problem
From: |
Folkert van Heusden |
Subject: |
Re: compilation problem |
Date: |
Sun, 26 Feb 2006 01:50:57 +0100 |
User-agent: |
Mutt/1.5.10i |
> > 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.
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;
}
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