| delorie.com/archives/browse.cgi | search |
| From: | "A. Sinan Unur" <asu1 AT cornell DOT edu> |
| Newsgroups: | comp.os.msdos.djgpp |
| Subject: | Re: console color |
| Date: | Thu, 10 Jul 1997 15:00:43 -0400 |
| Organization: | Cornell University |
| Lines: | 19 |
| Sender: | asu1 AT cornell DOT edu (Verified) |
| Message-ID: | <33C5315B.4BA3@cornell.edu> |
| References: | <33c52f66 DOT 5876442 AT news DOT demon DOT co DOT uk> |
| NNTP-Posting-Host: | 128 |
| Mime-Version: | 1.0 |
| To: | djgpp AT delorie DOT com |
| DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
stewilcox AT slicksoft DOT demon DOT co DOT uk wrote:
> can anyone tell me how i can change the color of the dos screen from
> black to another color ?
read the docs, esp. conio functions
sample:
#include <conio.h>
int main(void)
{
textcolor(BLUE);
textbackground(WHITE);
clrscr();
return 0;
}
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |