delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2001/07/04/13:23:04

Date: Wed, 04 Jul 2001 20:17:47 +0300
From: "Eli Zaretskii" <eliz AT is DOT elta DOT co DOT il>
Sender: halo1 AT zahav DOT net DOT il
To: MartinB777 AT gmx DOT net
Message-Id: <7458-Wed04Jul2001201747+0300-eliz@is.elta.co.il>
X-Mailer: Emacs 20.6 (via feedmail 8.3.emacs20_6 I) and Blat ver 1.8.9
CC: djgpp AT delorie DOT com
In-reply-to: <3b431ff7$0$25519$9b622d9e@news.freenet.de> (MartinB777@gmx.net)
Subject: Re: textattr() doesn't work as it should
References: <3b431ff7$0$25519$9b622d9e AT news DOT freenet DOT de>
Reply-To: djgpp AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

> Newsgroups: comp.os.msdos.djgpp
> Date: Wed, 4 Jul 2001 15:54:16 +0200
> 
> i'm using djgpp (downloaded last sunday...). i'm writing a little
> database in commandline of win95. for different textcolors and -backgrounds
> i use
> textattr(). but only when i use clrscr() the changes will take affect on the
> next printf() command.

You can't mix direct-access conio routines such as textattr with
buffered stdio functions such as printf.  Use cprintf instead.  See
section 9.5 of the DJGPP FAQ for more details.

- Raw text -


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