delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/03/30/02:41:16

Date: Thu, 30 Mar 2000 11:42:59 +0500
Message-Id: <200003300642.LAA00864@midpec.com>
From: prashant_tr AT yahoo DOT com (Prashant TR)
To: djgpp AT delorie DOT com
In-reply-to: <MDvE4.9514$K9.87177@typhoon.nyroc.rr.com> (fubu36@stny.rr.com)
Subject: Re: screen
References: <MDvE4.9514$K9 DOT 87177 AT typhoon DOT nyroc DOT rr DOT com>
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

"John" <fubu36 AT stny DOT rr DOT com> proclaimed:

> Is there a way to get what ever is printed to the screen at a certain x,y
> position and store it to a variable?

Yes.

char x = _farpeekb(_dos_ds, BASEMEM + (y - 1) * 160 + (x - 1) * 2);

And BASEMEM = 0xb8000 for color and 0xb0000 for monochrome.

- Raw text -


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