home *** CD-ROM | disk | FTP | other *** search
/ Between Heaven & Hell 2 / BetweenHeavenHell.cdr / 300 / 295 / push_pop.doc < prev    next >
Text File  |  1985-08-24  |  5KB  |  115 lines

  1. ..PUSH-POP.DOC   by  Larry Lockwood, Orange County IBM PC Users Group
  2.  
  3.     Push.com is designed to take "snapshots" of CRT displays and 
  4. store them in a file.  POP.COM restores the screen image and allows
  5. you to modify almost everything.
  6.  
  7.     PUSH.COM, once loaded, remains resident in memory.  When it
  8. has been loaded, the CRT display can be copied to a screen-image file
  9. by concurrently depressing the Shift-PrtSc keys.  You can no longer 
  10. use Shift-PrtSc to copy the CRT display to the printer until you 
  11. reboot the computer.
  12.  
  13.     The syntax for loading PUSH.COM is:
  14.  
  15.          PUSH drive:filename (do not use a file extension)
  16.  
  17.     For example, suppose PUSH.COM is on the diskette in drive A
  18. and you wish to create a series of screen-image files named SNAPSHOT
  19. on a diskette in drive B.  The installation entry would be:
  20.             
  21.         PUSH b:snapshot
  22.  
  23.     When you first press the Shift-PrtSc keys, PUSH will create a
  24. screen-image file named SNAPSHOT.001 on the diskette in drive B.  The
  25. second time the Shift-PrtSc keys are pressed, another screen-image file,
  26. SNAPSHOT.002, will be created, and so on.
  27.  
  28.     When you save a text screen, the corresponding screen-image file
  29. size is 4100 bytes.  A graphics screen will create a corresponding 16,300
  30. byte screen-image file.  You can copy approximately 88 text images or
  31. 22 graphics images to a 360KB diskette.  Once you create a series of
  32. screen-image files, use the DOS RENAME command to give your files more 
  33. meaningful names.  
  34.  
  35.     POP.COM restores a screen-image file to the display.  The syntax,
  36. using the example above, would be:
  37.  
  38.         POP B:SNAPSHOT.001
  39.  
  40.     When I first tried POP.COM, I found that it always restored 
  41. graphics images on a black background with the palette ) foreground
  42. colors (cyan, white, and magenta).  After digging through the Technical
  43. Reference Manual, I concluded that these are the default IBM PC color
  44. settings and there was no way that I could rewrite PUSH.COM to capture
  45. the Color Select Register setting (it's a write-only register).  My
  46. only choice was to modify POP.COM to provide a means of restoring the
  47. original colors via function keys.  While I was at it, it occurred to
  48. me that the function keys could also be used to change the attributes
  49. of individual characters in text files.
  50.  
  51.     One thing led to another and what finally evolved was a POP.COM
  52. program that restores the original screen image and allows you to modify
  53. almost everything.  The function keys do the following:
  54.  
  55.     F1-Changes background colors of graphics images
  56.             and border colors of text images.
  57.     F2-toggles graphics foreground colors back and 
  58.        forth between palettes 0 and 1.
  59.     F3-Selects background colors for individual
  60.        characters in text mode.
  61.     F4-Selects foreground colors for individual
  62.        characters in text mode.
  63.     F5-Exercises your left forefinger.
  64.     F6-Controls individual character blinking.
  65.     
  66.     Shift-F7-Reloads the original screen-image
  67.        file again. (Use this if you've made 
  68.        modifications that you don't like and
  69.        decide it would be quicker to just start
  70.        all over again.)
  71.     Shift-F8-Saves modified image back to the
  72.        disk with the original filename. (Careful-
  73.        this destroys the original image.)
  74.     Esc-Exits and returns to DOS without saving
  75.            modified screen.
  76.  
  77.      Other keys-The cursor keys are functional in 
  78.        text and graphics modes, as are the alpha-
  79.            numeric keys.  In graphics mode, however,
  80.        the cursor is implemented as a one-pixel
  81.        dot that moves around the screen.  It starts
  82.        in the upper left-hand corner of the screen,
  83.        but you won't see it until one of the cursor
  84.        keys is depressed.  The Home key moves the
  85.        cursor up-left and the End key moves it
  86.        down-left.  The Ctrl key, when used in con-
  87.        junction with the alpha-numeric keys, produces
  88.        the IBM PC symbols associated with the various
  89.        control codes.  If you have the IBM Technical
  90.        Reference Manual, the symbols are shown on page
  91.        C-1.  If not, just experiment.
  92.  
  93.     These programs were witten specifically for an IBM
  94. PC with a Color/Graphic Monitor Adapter.  Any compatibility
  95. with other PC's or adapters is strictly coincidental.  These
  96. programs will not work with a Monochrome Dispay Adapter,
  97. because both PUSH and POP read from, and write to,the
  98. color display memory at B800H.  Also, the IBM Monochrome
  99. Dispay Adapter has no graphics capabilities.
  100.  
  101.     Perhaps the simplest way to provide continuous,
  102. sequential viewing of screen-images files is to create 
  103. BATch files with the filenames separated by PAUSE commands.
  104.  
  105. Note:  This file appeared in the August 1985 issue of
  106. EXCHANGE, published by & copy write by International
  107. Business Machines.  Exchange is distributed free of
  108. charge to IBM computer user group members.  PUSH.COM
  109. & POP.COM were downloaded from the IBM PC User Group
  110. Support Electronic bulletin board system in Boca Raton,
  111. Florida.  The electronic bulletin board system is 
  112. available to all user group members.
  113.       
  114.  
  115.