From: "Lionel Brits" Newsgroups: comp.os.msdos.djgpp Subject: Re: Colours Date: Wed, 20 Jun 2001 15:19:32 -0600 Organization: CADVision/PSINet Lines: 28 Message-ID: <9gr42e$kmr$1@news3.cadvision.com> References: <993062430 DOT 11148 DOT 0 DOT nnrp-13 DOT c1ed4a47 AT news DOT demon DOT co DOT uk> NNTP-Posting-Host: h-207-148-134-229.dial.cadvision.com X-Trace: news3.cadvision.com 993072015 21211 207.148.134.229 (20 Jun 2001 21:20:15 GMT) X-Complaints-To: news AT cadvision DOT com NNTP-Posting-Date: Wed, 20 Jun 2001 21:20:15 +0000 (UTC) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2462.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2462.0000 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Hi, Though this is far from portable, you could always write to screen memory 0xb0000. First character is the text, while the second is the attribute (colour, intensity) HTH, - Lionel Brits "Steve B" wrote in message news:993062430 DOT 11148 DOT 0 DOT nnrp-13 DOT c1ed4a47 AT news DOT demon DOT co DOT uk... > Hi, > Im programming a text adventure game using DJGPP > and im wondering how to use colours (with > and cout) in c++. > > Ive heard something about using ANSI escape sequences > but im not sure how to use these for colours. > > Any help would be appreciated. > > -- > Steve Barnett > >