delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/09/05/19:00:05.1

Path: news.mv.net!newsfeed2.skycache.com!newsfeed.skycache.com!Cidera!newsfeed.icl.net!diablo.theplanet.net!news.theplanet.net!newspost.theplanet.net!not-for-mail
From: "Rosemary Rayne" <rosemary AT raynefamily DOT fsnet DOT co DOT uk>
Newsgroups: comp.os.msdos.djgpp
Subject: textmode() and textcolor() in DJGPP
Date: Tue, 5 Sep 2000 23:41:00 +0100
Organization: Customer of Energis Squared
Lines: 21
Message-ID: <8p3stc$l0g$1@news6.svr.pol.co.uk>
NNTP-Posting-Host: modem-113.thorium.dialup.pol.co.uk
X-Trace: news6.svr.pol.co.uk 968193772 21520 62.136.64.241 (5 Sep 2000 22:42:52 GMT)
NNTP-Posting-Date: 5 Sep 2000 22:42:52 GMT
X-Complaints-To: abuse AT theplanet DOT net
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2314.1300
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
Xref: news.mv.net comp.os.msdos.djgpp:103183

For some reason I cannot get DJGPP to change the color of the text that it
outputs to the screen.

I use the lines:

#include <conio.h>
int main(void) {
    textmode(C80);
    textcolor(CYAN);
    printf("This should be cyan");
}

Can anyone help me with this problem.

Regards,

Ed

edward DOT rayne AT talk21 DOT com


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019