From: pradeeptob AT yahoo DOT com (Pradeepto K Bhattacharya) Newsgroups: comp.os.msdos.djgpp Subject: PdCurses ...Colour Problem...PLease Help Date: 24 Aug 2002 00:04:33 -0700 Organization: http://groups.google.com/ Lines: 40 Message-ID: <5a91d0ef.0208232304.2555ff77@posting.google.com> NNTP-Posting-Host: 203.196.154.227 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1030172674 12234 127.0.0.1 (24 Aug 2002 07:04:34 GMT) X-Complaints-To: groups-abuse AT google DOT com NNTP-Posting-Date: 24 Aug 2002 07:04:34 GMT To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Hi, I am trying to use Pdcurses lib , I got it at www.delorie.com. But I am facing few problems. Especially the colour routines.Like the example given below, when I compile /link it , everything goes smoothly.When there is no output.Basically a blank dos box starts and nothing happens, just waits for the getch() and exits when I press a key. Where am I wrong, is there something with this code.Well I tried the colour routines myself without much success then I got this example on some website, but still the problem. Please look into it.If somebody can provide example/snippets of programs with the ncurses/pdcurses lib I will be cool. Thanx in advance, appretiate it! Regards Pradeepto /**************The code***********************************/ #include #include int main() { WINDOW *vin; init_scr(); start_color(); init_pair(1,COLOR_YELLOW,COLOR_BLUE); init_pair(2,COLOR_BLUE,COLOR_YELLOW); init_pair(3,COLOR_BLUE,COLOR_WHITE); vin=newwin(12,40,13,0); wmove(vin,0,5); wprintw(vin,"Hello, World."); wbkgd(vin,COLOR_PAIR(1)); wrefresh(vin); getch(); delwin(vin); endwin(); return 0; }