| www.delorie.com/archives/browse.cgi | search |
| Path: | news.mv.net!newsfeed.mathworks.com!feeder.via.net!newshub2.rdc1.sfba.home.com!news.home.com!news1.rdc1.ab.home.com.POSTED!not-for-mail |
| From: | Kaos <iam AT home DOT com> |
| Newsgroups: | comp.os.msdos.djgpp |
| Subject: | Re: textmode() and textcolor() in DJGPP |
| Message-ID: | <mm3brsc174hr9dafogeln8pv72cnp157a8@4ax.com> |
| References: | <8p3stc$l0g$1 AT news6 DOT svr DOT pol DOT co DOT uk> |
| X-Newsreader: | Forte Agent 1.7/32.534 |
| MIME-Version: | 1.0 |
| Lines: | 36 |
| Date: | Wed, 06 Sep 2000 00:37:07 GMT |
| NNTP-Posting-Host: | 24.64.44.138 |
| X-Complaints-To: | abuse AT home DOT net |
| X-Trace: | news1.rdc1.ab.home.com 968200627 24.64.44.138 (Tue, 05 Sep 2000 17:37:07 PDT) |
| NNTP-Posting-Date: | Tue, 05 Sep 2000 17:37:07 PDT |
| Organization: | Excite AT Home - The Leader in Broadband |
| Xref: | news.mv.net comp.os.msdos.djgpp:103187 |
I believe that printf does not do colors...
I know that conio.h has the cprintf function (same as printf, but it's
the console printf) and it will handle colors.
Kaos [Kevin Brown]
On Tue, 5 Sep 2000 23:41:00 +0100, "Rosemary Rayne"
<rosemary AT raynefamily DOT fsnet DOT co DOT uk> wrote:
::For some reason I cannot get DJGPP to change the color of the text that it
::outputs to the screen.
::
::I use the lines:
::
::#include <conio.h>
::int main(void) {
:: textmode(C80);
:: textcolor(CYAN);
:: printf("This should be cyan");
::}
::
::Can anyone help me with this problem.
::
::Regards,
::
::Ed
::
::edward DOT rayne AT talk21 DOT com
::
---
Kaos
Anime Poster, Leecher, and Encoder.
(alt.binaries.anime)
(alt.binaries.multimedia.anime)
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |