bug-ncurses
[Top][All Lists]
Advanced

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

How to draw a colorful border using wborder ?


From: John Daker
Subject: How to draw a colorful border using wborder ?
Date: Fri, 19 Dec 2008 17:58:13 +0800

Hi all
I want to draw a border with blue background white line, and my code is:

win=newwin(15,70,15,300);
werase(win);
init_pair(1,COLOR_WHITE,COLOR_BLUE);
wattrset(win,COLOR_PAIR(1));

int x,y;
for(y=0;y<15;y++)
for(x=0;x<70;x++)
waddch(win,' ');
wborder(win,0,0,0,0,0,0,0,0);

But the border's background is black while other area is blue, How to draw a colorful border using wborder ?

Thanks

reply via email to

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