www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/01/15/09:04:21

From: "A. Sinan Unur" <sinan DOT unur AT cornell DOT edu>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: simple question re: conio.h
Date: Thu, 15 Jan 1998 08:44:07 -0500
Organization: Cornell University (http://www.cornell.edu/)
Lines: 28
Sender: asu1 AT cornell DOT edu (Verified)
Message-ID: <34BE12A7.B8BFBEDD@cornell.edu>
References: <34BD8993 DOT 35DA AT primenet DOT com>
NNTP-Posting-Host: cu-dialup-0014.cit.cornell.edu
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Smith A. Cat wrote:

> Has anyone got a code fragment that uses conio.h functions to get
> colored text?? When I try to use them I ALWAYS get the default colors 
> in effect at the program startup, I can't set the colors!!?? I can set 
> the lines to this and that, and I can gotoxy(), but I can't set the
> colors?!?!?

do you mean to say this does not work:

#include <conio.h>

int main(void)
{
  textcolor(BLUE);
  cputs("BLUE\r");
  return 0;
}

i find that hard to believe.
-- 
----------------------------------------------------------------------
A. Sinan Unur
Department of Policy Analysis and Management, College of Human Ecology,
Cornell University, Ithaca, NY 14853, USA

mailto:sinan DOT unur AT cornell DOT edu
http://www.people.cornell.edu/pages/asu1/

- Raw text -


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