Mail Archives: djgpp/1997/12/21/06:48:05
On Fri, 19 Dec 1997, yin tan cui wrote:
> 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.
I think you need to scroll the screen, not to update it. You *can*
achieve the scroll effect by using ScreenRetrieve followed by
ScreenUpdate, but that's another matter.
> Am I right ? and if so, How to get an exact replica of video memory ?
> if I'm wrong, What should I do ?
If you use ScreenRetrieve, then you already get the exact replica.
- Raw text -