home *** CD-ROM | disk | FTP | other *** search
- Program Pwindow;
-
- Uses
- Crt;
-
- {$L Pwindow}
- type
- buffertype = ARRAY[1..4000] OF BYTE;
-
- VAR
- x,y,w,h: byte;
- i : Integer;
- buffer: buffertype;
-
- {$F+}
- procedure wget(x,y,w,h: byte; VAR buffer: buffertype); external;
- procedure wput(x,y,w,h: byte; VAR buffer: buffertype); external;
- {$F-}
-
- begin
- for i := 1 to 2000 do
- write('░');
-
- Write('Going to save a small portion of this screen. Press <Enter>');
- ReadLn;
- wget(5,5,10,5,buffer);
- gotoxy(1,24);
- clrscr;
- Write('Going to restore the small portion of previous screen. Press <Enter>');
- ReadLn;
-
- wput(5,5,10,5,buffer);
-
- end.