Date: Wed, 11 Dec 1996 13:36:13 +0100 (MET) From: Miguel Murillo To: Bruce A Locke cc: djgpp AT delorie DOT com Subject: Re: Newbie Question: Why doesn't this work? In-Reply-To: <19961206.232059.4631.0.Praxis_Beta@juno.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On Fri, 6 Dec 1996, Bruce A Locke wrote: > > Hello everyone. > > Below is a little runt of a program that I have been fidiling with in > order to learn the fuctions. But I cannot figure out why it > doesn't work the way I want it to. > > The ClrScr() command seems to do nothing at all in the program despite > INFO help stating that it clears the screen. Also, even if I set the > textcolor() and textbackground(), The existing screen attributes take > priority over the colors I set..... > > Does DJGPP handle CONIO differently than in other dos compilers, or am I > in error? > > Thanks in advance..... > > > > -- Start of source -- > > #include > > void main(void) > > { > > int xcount; > int ycount; > char *background_character; > background_character = "_"; // char 176 > > for (xcount=1;xcount<81;xcount++) > for (ycount=1; ycount<26; ycount++) > { > > textcolor(6); > textbackground(0); > //cprintf("%i,%i\n\r",xcount,ycount); > gotoxy(xcount,ycount); > putchar(*background_character); > }; > > textcolor(15); > textbackground(0); > clrscr; > > window (10,5,70,20); > > textcolor(15); > textbackground(4); > clrscr(); > cprintf(" ERROR!!!!! ILLEGAL REGISTRATION CODE!!!! \n\r"); > getkey(); > } > > -- End of Source --- clrscr is function, the line clrscr; ????? What is it!!!!!! clrscr(); Good luck! Miguel Murillo