delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1994/03/11/13:59:02

Date: Fri, 11 Mar 1994 13:05:45 -0500 (EST)
From: "Chris Mr. Tangerine Man Tate" <FIXER AT FAXCSL DOT DCRT DOT NIH DOT GOV>
To: djgpp AT sun DOT soe DOT clarkson DOT edu
Subject: Text screen I/O

Forgive me if this is a repeat; I *think* I sent my first attempt to
the wrong email address for the mailing list.  I apologize if you
got more than one copy of this question.

I'm trying to do color, character-based screen drawing under go32.
The <pc.h> header file and the /docs/djgpp/libpc.doc help file are
pretty sketchy documentation, unfortunately, and I can't quite figure
out what's going on.

For one thing, I get an exception whenever I try to write into the
ScreenPrimary[] array directly, even though the libpc.a documentation
implies that this is perfectly legal.  Should I not be trying to do this?

Furthermore, if I try to use ScreenPutChar(), I don't actually get any
characters drawn on the screen.  I *suspect* I'm using a bad value for
the 'attribute' parameter - how do I tell it to draw the character in
a given color?

On a different topic - I'm brand-new to djgpp, and I'm impressed.  The
gcc compiler seems surprisingly fast (I'm using C++, too!), and being
able to ignore the usual DOS memory snarl is a dream come true!

Replies by email, please; if people express interest, I'll summarize
to the mailing list.

-- Chris Tate
   fixer AT faxcsl DOT dcrt DOT nih DOT gov

- Raw text -


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