X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-bounces using -f Date: Mon, 14 Jan 2002 16:00:04 +0200 (IST) From: Eli Zaretskii X-Sender: eliz AT is To: Hans-Bernhard Broeker cc: djgpp AT delorie DOT com Subject: Re: scanf & 320*200 In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 Precedence: bulk On 14 Jan 2002, Hans-Bernhard Broeker wrote: > Only text screens can be read out (using ScreenGetChar() from the > 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.)