delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/12/19/04:30:19

From: yin tan cui <z2191317 AT student DOT unsw DOT edu DOT au>
Newsgroups: comp.os.msdos.djgpp
Subject: how to get a copy of video memory ?
Date: Fri, 19 Dec 1997 13:03:02 +1000
Organization: UNSW
Lines: 17
Message-ID: <3499E3E6.5837@student.unsw.edu.au>
Reply-To: z2191317 AT student DOT unsw DOT edu DOT au
NNTP-Posting-Host: max214015.servers.unsw.edu.au
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

I'm writing a program that uses these screen functions in "pc.h", such
as ScreenPutString() to print some colored strings to the screen. The
problem I'm having is that when the number of lines I printed exceeds
the max row number(eg: when I'm using a 80x25 dos window, 
       No. of lines printed > 25)

I guess I need to update the screen in this case. ie. use 
void ScreenUpdate(void *buf)
where buf should contain an exact replica of the video memory, including
the chars and their attributes.

Am I right ? and if so, How to get an exact replica of video memory ?
if I'm wrong, What should I do ?


Thank you very much for your help.
(please reply by mail to    z2191317 AT student DOT unsw DOT edu DOT au )

- Raw text -


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