home *** CD-ROM | disk | FTP | other *** search
/ Simtel MSDOS 1992 September / Simtel20_Sept92.cdr / msdos / ega / zapscrn.arc / ZAP.DOC < prev   
Text File  |  1988-12-15  |  3KB  |  86 lines

  1.  
  2. EGAZAP.COM and VGAZAP.COM by Mark Adler  Pasadena, CA  1988.
  3.  
  4. ZAP is a resident utility that blanks the screen after a specified
  5. period of inactivity.  The ZAP.ASM program actually generates two
  6. different programs depending on the assembler options:  EGAZAP and
  7. VGAZAP.  The first is for the IBM Enhanced Graphics Adapter or
  8. compatibles, and the second is for IBM PS/2's, the IBM Video Graphics
  9. Adpater, and comaptibles.  From here on, ZAP will be used to mean EGAZAP
  10. or VGAZAP, whichever is appropriate for your hardware.
  11.  
  12. To install ZAP, simply put the command ZAP in your AUTOEXEC.BAT file.
  13. From then on, when there is five minutes of inactivity at the keyboard,
  14. ZAP will blank the screen until any key (even just a shift key) is hit.
  15. The time can be changed with a command line option which specifies the
  16. time in seconds.  For example:
  17.  
  18.      zap 600
  19.  
  20. will install ZAP (if not already installed) and change the time to 10
  21. minutes.
  22.  
  23. You can also turn the installed ZAP on and off using ZAP.  For example:
  24.  
  25.      zap off
  26.  
  27. will turn off the installed ZAP, so it will not blank the screen.  Then
  28. the command:
  29.  
  30.      zap on
  31.  
  32. will turn ZAP back on.
  33.  
  34. ZAP can also be installed in the "off" state, awaiting a "zap on"
  35. command, simply by using:
  36.  
  37.      zap off
  38.  
  39. in AUTOEXEC.BAT.  You can also specify on or off along with a new
  40. inactivity time.  For example, the command:
  41.  
  42.      zap off 600
  43.  
  44. in AUTOEXEC.BAT will install ZAP in the off state with a 10 minute
  45. inactivity time.  Then a subsequent "zap on" will turn it on.  The time
  46. must be in the range of one to 3600 seconds (one hour).  Specifying a
  47. new time does not change whether ZAP is enabled or not and turning ZAP
  48. on or off does not change the time.  Also, the two options can be in
  49. either order.  For example, "zap 600 off" does the same thing as the
  50. example above.  If ZAP is already installed, subsequent invocations of
  51. ZAP will not install it again.  If the command:
  52.  
  53.      zap
  54.  
  55. is entered after ZAP is already installed, this has the same effect as
  56. the command "zap on", that is it turns on ZAP if it was off.
  57.  
  58. ZAP turns the display back on not only when any key is hit, but also if
  59. any video BIOS calls (int 10h) are made.  Since most application
  60. programs seem to bypass the BIOS for video, this added feature has
  61. little effect.
  62.  
  63. There are a few, rare programs that also completely take the keyboard
  64. from the BIOS, in which case ZAP can no longer find out when keystrokes
  65. occur.  An example is STSC APL (a programming language).  In this case,
  66. ZAP will blank your display, even though you have been merrily typing
  67. away for the last five minutes in the application.  And the only way to
  68. get the display back on is to return to DOS (assuming you can get out
  69. while driving the application blindfolded).  For such applications, you
  70. should include the commands "zap off" and "zap on" in a batch file that
  71. runs the application to disable ZAP before entering and enabling ZAP
  72. after leaving the application.  You will quickly discover if you have
  73. any such applications.
  74.  
  75. Version history -
  76.  
  77. 1.0     18 Nov 1988     First public version
  78. 1.1     14 Dec 1988     Fixed bug in EGAZAP
  79.  
  80. Feel free to send any problems with or comments on ZAP to:
  81.  
  82.         Mark Adler
  83.         P.O. Box 60998
  84.         Pasadena, CA  91106
  85.  
  86.