delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/12/29/01:32:07

From: "A. Sinan Unur" <sinan DOT unur AT cornell DOT edu>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: conio.h question (hopefully a simple one)
Date: Mon, 29 Dec 1997 01:06:54 -0500
Organization: Cornell University (http://www.cornell.edu/)
Lines: 28
Sender: asu1 AT cornell DOT edu (Verified)
Message-ID: <34A73DFE.30B1038A@cornell.edu>
References: <34A1DD78 DOT E0CB38C4 AT compu DOT net> <34A1E387 DOT 6B9192BA AT alcyone DOT com>
NNTP-Posting-Host: cu-dialup-0084.cit.cornell.edu
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Erik Max Francis wrote:
> 
> QlowN wrote:
> 
> > #include <conio.h>
> >
> > void main (void)
> > {
> >  textbackground(0);
> >  textcolor(7);
> >  cprintf("This should be in color.");
> > }
> 
> Should it?  I haven't use conio routines in a while, but doesn't
> foreground 7, background 0 correspond to white on black (e.g., the
> normal color)?
> 

it does. the original poster would benefit from looking at conio.h and
use the color names such as BLUE, YELLOW etc.
-- 
----------------------------------------------------------------------
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