home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!europa.asd.contel.com!emory!ogicse!usenet.coe.montana.edu!icsu0237
- From: icsu0237@cs.montana.edu (Jeff Patterson)
- Newsgroups: comp.lang.pascal
- Subject: Re: need help with 'boss key'/screen blank
- Message-ID: <1992Dec15.102324.1063@coe.montana.edu>
- Date: 15 Dec 92 10:23:24 GMT
- Article-I.D.: coe.1992Dec15.102324.1063
- References: <Bz9tor.8sq@javelin.sim.es.com>
- Sender: usenet@coe.montana.edu (USENET News System)
- Organization: Montana State University, Dept. of Computer Science, Bozeman MT 59717
- Lines: 44
-
- In article <Bz9tor.8sq@javelin.sim.es.com> tpehrson@javelin.sim.es.com writes:
- >could someone please tell me an easy way to blank a text screen and grab it
- >back to serve as a 'boss key'? i'm wondering if i can do some memory
- >fancy-footing so that i can stuff it / pull it and not have to redraw.
- >
- >responses anticipated with gratitude.
- >
-
- I too had this problem. It's not as difficult as you might think...
- A simple and effective way to do this is to define a type at start:
-
- type
- screentype:array[80,25] of word;
-
- and then to define two variables as follows
-
- var
- screen:screentype absolute $B800:0000; {address of text page}
- screencopy:screentype;
-
- The address should be the same on your computer. If not, see if you can find
- it in a tech man.
-
- Anyway, what has been created is a variable called screen which always has in it
- what is currently on the monitor, and a copy of this variable called screencopy.
- When the "boss key" condition is met, simply include the following command:
-
- screencopy:=screen;
-
- then write whatever you feel is a good "boss key" front (a C:\ or something)
- When you want to toggle back, simply type:
-
- screen:=screencopy;
-
- and BLAM!, you have what you originally had. Hope that this can help somehow...
-
- Hope I could help out,
- - Jeff
-
- --
- ================================================================================
- Jeff Patterson CS Department || "We are the keepers of the sacred words..."
- icsu0237@caesar.cs.montana.edu || - Head Knight who says "NEEEGH!"
- ================================================================================
-