www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/01/17/13:45:26

From: "Smith A. Cat" <imbe AT primenet DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: simple question re: conio.h
Date: 17 Jan 1998 11:26:00 -0700
Organization: Blue Square Laboratories
Lines: 18
Message-ID: <34C0293B.1FB@primenet.com>
References: <34BD8993 DOT 35DA AT primenet DOT com> <34BF2C5E DOT 1B232C07 AT csun DOT edu>
MIME-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Ryan Bright wrote:
> 
> 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 

> You are probably trying to combine conio.h functions with stdio.h
> functions which really doesn't work.  You should use one or the other.
> In other words, use 'cprintf()', not 'printf()'.  If that's not what
> you're doing, then here's a piece of code I just tested--worked fine.

OOPS!

Thank you both -- I was totally ignorant of the console functions, ie
cprintf.  That was the problem.  
Thank You!
Phil

- Raw text -


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