Mail Archives: djgpp/2002/01/14/09:01:58

X-Authentication-Warning: mailnull set sender to djgpp-bounces using -f
Date: Mon, 14 Jan 2002 16:00:04 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: Hans-Bernhard Broeker <broeker AT physik DOT rwth-aachen DOT de>
cc: djgpp AT delorie DOT com
Subject: Re: scanf & 320*200
In-Reply-To: <a1um3t$q81$1@nets3.rz.RWTH-Aachen.DE>
Message-ID: <Pine.SUN.3.91.1020114155741.16401J-100000@is>
MIME-Version: 1.0
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

On 14 Jan 2002, Hans-Bernhard Broeker wrote:

> Only text screens can be read out (using ScreenGetChar() from the
> <pc.h> package) directly. In graphics mode, there is no explicit
> representation of a single displayed character that you could read
> out: it's just an arbitrary collection of pixels.

Well, not entirely true: the BIOS can make sense out of those pixels, 
even in graphics modes, but only for those modes supported by the 
standard video BIOS.  I don't remember whether 320x200 is one of the 
standard modes, but if it is, you can use one of the functions of the 
BIOS Int 10h (sorry, I forget which function is that) to read the 
characters one by one.  (A quirk: blanks are read as null characters.)

- Raw text -

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