From: "A. Sinan Unur" Newsgroups: comp.os.msdos.djgpp Subject: Re: colored text in text mode Date: Fri, 06 Dec 1996 06:34:12 -0500 Organization: Cornell University Lines: 20 Sender: asu1 AT cornell DOT edu (Verified) Message-ID: <32A804B3.AAF@cornell.edu> References: <275252745D AT fs2 DOT mt DOT umist DOT ac DOT uk> NNTP-Posting-Host: cu-dialup-0039.cit.cornell.edu Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: "A.Appleyard" DJ-Gateway: from newsgroup comp.os.msdos.djgpp A.Appleyard wrote: > > In v1, and in v2, when writing to screen in the ordinary text mode by fprint() > etc, how can I tell the PC to start writing with such-and-such a foreground > and background color? you can't. fprint is defined by the ANSI standard. it may not be tweaked with at will. see the conio (console i/o) functions. you can find info in the 'info' files. (or, follow this: http://www.delorie.com/djgpp/doc/libc-2.01/libc_4.html) sinan. -- ******************************************************************* A. Sinan Unur WWWWWW |--O+O mailto:asu1 AT cornell DOT edu C ^ mailto:sinan AT econ DOT cit DOT cornell DOT edu \ ~/ http://www.bqnet.com/sinan/ *******************************************************************