home *** CD-ROM | disk | FTP | other *** search
/ Programmer 7500 / MAX_PROGRAMMERS.iso / PROGRAMS / UTILS / EGA_VGA / BLANKS20.ZIP / BLANKS.DOC < prev    next >
Encoding:
Text File  |  1989-10-11  |  21.5 KB  |  421 lines

  1.                  Copyright (C) 1988, 1989 by FM de Monasterio
  2.                     All rights reserved  May not be sold
  3.  
  4.                             --------------------
  5.                             BLANKs  version 2.00
  6.                             --------------------
  7.  
  8.  
  9.     BLANKs.COM is an IBM PC-/MS-DOS based, resident program that blanks the
  10.     screen after a preselected interval in the absence of a keypress.  This
  11.     interval can be selected from 1 to 60 minutes.  A selection higher than
  12.     60 minutes is set to 60.  Selecting 0 minutes disables screen blanking;
  13.     blanking can be enabled by re-invoking with an interval of 1 to 60 min.
  14.     The program also offers the option of parking hard disk(s) heads at the
  15.     time of blanking, of the use of a password to unblank the video, and of
  16.     blanking the screen at the press of a selectable hot-key.
  17.  
  18.     BLANKs is a terminate-and-stay resident (TSR) program.  When installed,
  19.     the program uses less than 1000 bytes.  It can be invoked repeatedly to
  20.     change its settings without producing multiple copies to memory. BLANKs
  21.     intercepts interrupts 8, 9 and 13h (and optionally 10h and 33h), and is
  22.     a "well behaved" TSR intended to run under MS-DOS or IBM PC-DOS version
  23.     2.0x or higher.
  24.  
  25.  
  26.  
  27.     OPERATION
  28.  
  29.     The video blanking is obtained by direct commands to the hardware (video
  30.     controller) to turn off/on the video signal.  This is a fast method that
  31.     operates successfully in the IBM PC/XT, PC/AT and in some IBM compatible
  32.     computers installed with MDA, CGA, EGA, VGA, and Hercules video adapters
  33.     or with IBM-compatible adapters from other manufacturers.
  34.  
  35.      NOTICE   In some nonIBM microcomputers the program may not work and it
  36.                should NOT be used with other video adapter types unless they
  37.                are compatible with the IBM adapter at the register level (as
  38.                it is possible that some of these adapters might be damaged).
  39.  
  40.  
  41.     BLANKs intercepts the interrupts 8h (hardware timer), 9h (keyboard), 10h
  42.     (BIOS video services), 13h (BIOS disk services), and 33h (mouse services
  43.     for device drivers following the Microsoft/Logitech Mouse format).
  44.  
  45.     BLANKs will fail to operate if access to interrupts 8 and 9 is denied by
  46.     another program or resident loaded after BLANKs. This might occur with a
  47.     few communication and some word processing programs that take over these
  48.     interrupts and fail to pass along the information to other programs that
  49.     may be tapping the same interrupt vectors.
  50.  
  51.   - Interrupt 8h is issued 18.2 times/s to update the machine time-of-the-day
  52.     counter (which is stored in the BIOS data area).  Since a timer interrupt
  53.     can thus only operate within a period of about 55 ms or less (*including*
  54.     the overhead of DOS and other programs hooking on the timer), the program
  55.     uses direct commands to the hardware, written in assembly language, which
  56.     are issued, when needed, after the original timer interrupt is served.
  57.  
  58.   - Interrupt 9h is issued when a key on the keyboard is pressed or released.
  59.     When the hotkey service is enabled (see switch /H below), BLANKs triggers
  60.     blanking of the screen when the default hotkey combination (Ctrl-B in non
  61.     shareware versions) is pressed.  The hotkey code is then removed from the
  62.     keyboard buffer; other keys are passed along for keyboard processing and,
  63.     if blanking had occurred, the screen is restored.
  64.  
  65.   - Interrupt 10h is used to mediate a variety of video BIOS services.  Since
  66.     such services are comparatively slow, many programs make direct writes to
  67.     the video (which are not detected by the resident part of BLANKs) instead
  68.     of using BIOS video calls.
  69.  
  70.   - Interrupt 13h is used to mediate a variety of hard disk and diskette BIOS
  71.     services.
  72.  
  73.   - Interrupt 33h (which is not used by DOS or the BIOS) is used in Microsoft
  74.     and Logitech implementation of calls to the Mouse driver.  This interrupt
  75.     is claimed by the driver during its initialization.
  76.  
  77.      NOTICE    To be able to monitor interrupt 33h, BLANKs must be installed
  78.                 *after* the mouse device driver, as otherwise the driver will
  79.                 not allow access to the interrupt.  Also note that the driver
  80.                 for a well known mouse can freeze the machine if interrupt 33
  81.                 is found to be in use at the time of installation.  This does
  82.                 not occur with other drivers, e.g. Logitech's MOUSE.COM.
  83.  
  84.  
  85.  
  86.     BYPASSING INTERRUPTS
  87.  
  88.     While installed, BLANKs bypasses the interrupt 8 when a blanking interval
  89.     of 0 minute has been selected (see below).   Interrupt 9 is bypassed only
  90.     when both an interval of 0 minute and the switch /H- (see below) have been
  91.     selected.  When /H- has been selected along with a nonzero interval, just
  92.     the hotkey service of interrupt 9 is bypassed.  Hence, these two interrupt
  93.     activities of BLANKs are bypassed by the "0 /H-" selection; this may be of
  94.     use in case of testing potential conflicts with other programs.
  95.  
  96.     Interrupts 10h and 33h are not intercepted when /K is selected; when this
  97.     switch is not selected, these two interrupts are intercepted but they are
  98.     not monitored unless switch /V is selected explicitly.
  99.  
  100.     Note that during cloning of the program, the status of switch /K is *not*
  101.     copied as a default setting to the clone, as monitoring of video activity
  102.     would otherwise be impossible irrespective of the status of switch /V.
  103.  
  104.                              ----------------
  105.     USAGE
  106.  
  107.     From the DOS command line or from a batch file, BLANKs is installed (or,
  108.     when already installed, modified) by the command:
  109.  
  110.                            BLANKs [?] [min] [/switches] [;comments]
  111.  
  112.  
  113.     1.  [?]   Invokes a brief help and status display, identifying the type
  114.               of adapter for which the program is configured, the current
  115.               adapter, and program settings (if installed).  If the program
  116.               is not yet installed, its 16-bit CRC value is displayed; this
  117.               value is calculated each time before loading, and the program
  118.               will not install if an incorrect CRC is obtained (e.g., error
  119.               in copying or downloading, malicious alteration of the code).
  120.  
  121.               Pressing key <F1> displays further help on using the program.
  122.               If the program has not been installed, pressing <F2> displays
  123.               the default settings of BLANKs.
  124.  
  125.  
  126.     2. [min]  Timed blanking interval in minutes. These are the minutes that
  127.               the program waits before blanking the screen in the absence of
  128.               keyboard activity.  Valid selections are 0  or a number in the
  129.               range of 1 to 60.  The selection of a 0-min interval disables
  130.               the timed blanking of the screen; the selection of an interval
  131.               larger than 60 defaults to 60 minutes for 2 digit inputs or to
  132.               the value (in the valid range) of the first 2 digits in inputs
  133.               containing larger numbers.
  134.  
  135.               Null interval defaults to 3 minutes; this value may be changed
  136.               by cloning the program (see below).  Using <T> rather than the
  137.               digit(s) yields a 5-second interval for test purposes.
  138.  
  139.  
  140.     3.  Several switches are recognized.  While shown here preceded by a "/"
  141.     for the sake of clarity, the program accepts any character between space
  142.     ( ) and slash (/) as a switch delimiter.  Invalid switches abort loading
  143.     of the program.  Switches are not case sensitive.
  144.  
  145.     ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  146.     NOTE: Options marked with (*) are available in registered versions only.
  147.     ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  148.  
  149.          /A - Force configuration to specified adapter.  This switch bypasses
  150.               the automatic configuration of the program for the video adapter
  151.               detected at the time of each calling.  Valid specifications for
  152.               this switch are:
  153.  
  154.               /Am   configuration for the IBM Monochrome Display Adapter (MDA)
  155.                     and Hercules graphics cards (HGA, HGA plus, and In Color);
  156.                     uses and restores bit 3 of the video port 3B8h.
  157.  
  158.               /Ac   configuration for the IBM Color Graphics Adapter (CGA), the
  159.                     Multi Color Graphics Array (MCGA) and compatibles; uses and
  160.                     restores bits 0-3 of port 3D9h and bit 3 of port 3D8h.
  161.  
  162.               /Ae   configuration for the IBM Enhanced Graphics Adapter (EGA)
  163.                     and compatibles; reads video ports 3BAh and 3DAh, and uses
  164.                     and restores bit 5 of port 3C0h.
  165.  
  166.               /Av   configuration for the Video Graphics Array (VGA); uses port
  167.                     3C4h, and uses and restores bit 5 of port 3C5h.
  168.  
  169.               This configuration can be preserved as a default upon cloning of
  170.               (the shareware version of) BLANKs.  Switch /A is useful if video
  171.               adapter type were incorrectly identified or an "unknown" result
  172.               were obtained (see the Help display called by option "?").  See
  173.               the above NOTICE on compatibility.
  174.  
  175.  
  176.  
  177.          /C - Clone to disk the current version of BLANKs installed in the
  178.               memory.(*)  This permits making the settings of this version
  179.               the default ones.
  180.  
  181.                    If the /C switch is entered in the command line alone,
  182.                    default parameters do not become effective (unlike the
  183.                    case of any other single switch specification) and the
  184.                    resident parameters are copied to the cloned file.
  185.  
  186.                    If other switches or parameters are entered along with
  187.                    /C, these new parameters and, when applicable, defaults
  188.                    become effective, and are copied to the cloned file.
  189.  
  190.               The clone file BLANKs.COM is written to the default drive and
  191.               directory. A warning is given if a file with the same name is
  192.               present there, and the user has the option to overwrite it or
  193.               to abort the cloning.  Cloning will not overwrite files other
  194.               than those with a normal or archive attribute, or both.
  195.  
  196.  
  197.  
  198.          /H - Hotkey switch.  In addition to timed screen blanking, BLANKs
  199.               allows for manual blanking of the video by pressing a hotkey
  200.               combination.  This combination is Ctrl-B in the nonshareware
  201.               version of the program (see below).  When BLANKs detects the
  202.               hotkey, it removes it from the keyboard buffer.  However, be
  203.               aware that programs loaded after BLANKs may save this input;
  204.               this is the case, for instance, with some word processors in
  205.               which it is necessary to erase the hotkey character from the
  206.               text.   In the shareware version, the hotkey combination can
  207.               be changed in case of assignment conflicts.
  208.  
  209.               /H+  Enable hotkey operation.  This is the default condition
  210.                    when an argument is not specified for this switch.
  211.  
  212.               /H-  Disable hotkey operation.  Can be reenabled with /H+.
  213.  
  214.               /H?  Permit the selection of a new hotkey combination (*) that
  215.                    includes an alphanumeric key and one or more of the shift
  216.                    keys <Ctrl>, <Alt>, <left-Shift>, and <right-Shift>.  For
  217.                    obvious reasons, Ctrl or Alt, or both, have to be included
  218.                    in the new hotkey combination.
  219.  
  220.  
  221.          /K - Force monitoring of keyboard activity only.  If selected at the
  222.               time of the (first) installation, the switch installs a shorter
  223.               resident component of less than 800 bytes that disregards video
  224.               activity via interrupt 10h and 33h.  Because of the potential of
  225.               hanging the computer if a request to uninstall were made after a
  226.               change in the status of this switch, reinvocation of the program
  227.               ignores /K switch requests.  Hence, to change the status of this
  228.               switch, BLANKs must be uninstalled and then reinstalled.
  229.  
  230.               The status of the flag associated with the /K switch is ignored
  231.               during cloning, so that this switch cannot be set as a default.
  232.  
  233.  
  234.  
  235.          /P - Park the hard disk heads during manual or timed blanking of the
  236.               screen.  All physical hard disks attached to the disk controller
  237.               that can be accessed via the BIOS are parked (uses highest disk
  238.               cylinder).  Parking is suppressed if a BIOS disk(ette) service
  239.               is in progress at the time of blanking.
  240.  
  241.               /P+  Enable hard disk parking.  This is the default condition
  242.                    when an argument is not specified for this switch.
  243.  
  244.               /P-  Disable disk parking.  Can be reenabled with /P[+].
  245.  
  246.  
  247.  
  248.          /Q - Disable timed blanking.  Produces the same effect as selecting
  249.               an interval of 0 minute for the "T" option; it does not affect
  250.               manual blanking with the hotkey combination.  No defaults.
  251.  
  252.  
  253.  
  254.          /U - Uninstall.   Use only when BLANKs was the last resident to be
  255.               installed, as otherwise this would create a "hole" in memory.
  256.  
  257.               The request is not honored if vectors to interrupts 8, 9 and
  258.               10h have been changed since installation. This can be caused
  259.               by a resident installed after BLANKs, or by a prior resident
  260.               that changes vectors set by programs installed after it. You
  261.               can determine if this is the case by using any of the memory
  262.               mapping programs that are available: Search for interrupts 8
  263.               9 and 10; BLANKs.COM will be shown as an unnamed entry using
  264.               816 or 864 bytes, depending on the switch selections. (For a
  265.               name to be seen in such memory maps, you must install BLANKs
  266.               with the comment
  267.  
  268.  
  269.  
  270.          /V - Force monitoring of video activity mediated by BIOS/DOS calls
  271.               to interrupt 10h and mouse calls to interrupt 33h. If enabled,
  272.               switch /V avoids the timed blanking of the screen when video
  273.               activity is detected; this switch, however, does not defeat a
  274.               manual blanking of the screen, which can be unblanked only by
  275.               keyboard activity (with or without a password -- see below).
  276.               Switch /V function is negated by switch /K.
  277.  
  278.               Note:  The video output of some programs is not made through
  279.               these interrupts and, thus such activity will not be detected.
  280.         Further, some mouse drivers can freeze the machine if interrupt
  281.               33h is found to be in use at the time of their initialization.
  282.         (If you have such a driver and do not want to install it before
  283.               BLANKs, you then need to install BLANKs with the /K switch, or
  284.               uninstall BLANKs before installing the mouse device driver and
  285.               then reinstall it with the /V switch.)
  286.  
  287.          /W - Password unblanking.  A combination of up to 10 digits followed
  288.               by <Right-Shift> is required to unblank the screen after MANUAL
  289.               blanking; rebooting with <Ctrl-Alt-Del> keypress is blocked.(*)
  290.  
  291.               /W-  Disable password unblanking.
  292.  
  293.               /W+  Re-enable use of the resident password (if no password had
  294.                    been loaded, the video will unblank only when <Right-Shift>
  295.                    is pressed).
  296.  
  297.               /W   Request to specify a (new) password.
  298.  
  299.               Note: A password is not needed on TIMED blanking.  Once enabled,
  300.               password unblaking can be disabled either by switch "/W-" or by
  301.               pressing <Esc> at the time a password is being specified.
  302.  
  303.  
  304.     4. Comments may be added after a ";" to clarify commands in a batch file.
  305.     These comments, ignored by BLANKs, are removed from the invoking command
  306.     line before loading and, thus, are not inherited by any clone of BLANKs.
  307.  
  308.                                  ----------------
  309.  
  310.    RELEASE
  311.  
  312.    These programs and their documentation (the "Software") are the copyrighted
  313.    property of F.M. de Monasterio.  All rights are reserved.  The Software, in
  314.    its present nonshareware version, is distributed free of charge.  Asking or
  315.    charging donations for copies of this Software, or distributing such copies
  316.    via a for-profit organization is specifically prohibited.
  317.  
  318.    Although lacking those options marked above with asterisks the nonshareware
  319.    version is a usable program, being provided "as is" without warranty of any
  320.    kind, either expressed or implied, including, but not limited to warranties
  321.    of quality, performance, or fitness for any particular purpose.  The entire
  322.    risk as to the quality and performance of the Software is only on the user.
  323.  
  324.  
  325.    REGISTRATION
  326.  
  327.    Registered versions of the Software for use on a SINGLE computer at a time
  328.    may be licensed for a fee of US$10.00.
  329.  
  330.    Registered versions of the Software for use in more than one computer at a
  331.    time (either by an individual  or a commercial enterprise) may be licensed
  332.    for a fee of US$30.00 for up to TEN computers at a single site or a set of
  333.    contiguous sites.
  334.  
  335.    Upgrades within the same major version number of this Software (e.g., 2.00
  336.    through  2.99) are free of charge to registered users, and may be obtained
  337.    by sending a self-stamped self-addressed diskette mailer with the original
  338.    360 kb diskette to the address below.  Other upgrades are half the cost of
  339.    the registration fee and may be ordered from the author (provide your name
  340.    and registration number).
  341.  
  342.    Refer all inquiries about this Software to:       F.M. de Monasterio
  343.    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~       7013 Barkwater Ct.
  344.                                                      Bethesda, Md 20817
  345.  
  346.    LICENSE
  347.  
  348.    Upon registration, the author grants you a non-exclusive, non-transferable
  349.    license to use this Software.  Ownership and title to the Software are not
  350.    transferred to you by this license and both are retained by the author and
  351.    copyright owner.
  352.  
  353.    - SINGLE-MACHINE LICENSE -
  354.    The license grants you use of the Software on a single computer at a time.
  355.    You may transfer the Software physically to another computer by having the
  356.    enclosed diskette(s) read into the computer, provided that the Software is
  357.    not used on more than ONE computer at any given time.
  358.  
  359.    - SITE/10-MACHINE LICENSE -
  360.    The license grants you use of the Software at a single site or at a set of
  361.    contiguous sites, provided that that the Software is not used on more than
  362.    TEN computers at any given time.
  363.  
  364.  
  365.    INJUNCTIONS
  366.  
  367.    You may distribute the Software via magnetic and/or electronic means, but
  368.    you are specifically prohibited from:
  369.  
  370.              1. Charging or asking donations for copies of the Software.
  371.              2. Distributing the Software with commercial products without
  372.                 the written permission from the author and copyright owner.
  373.              3. Distributing the Software via a for-profit organization,
  374.                 either alone or with other software.
  375.  
  376.    Unauthorized copying and/or disassembling of this Software is prohibited.
  377.    Any other use of this Software is prohibited without the express, written
  378.    permission in advance from the author and copyright owner.
  379.  
  380.  
  381.    SUPPORT
  382.  
  383.    Limited technical support is provided to registered users only; if you find
  384.    any problem, please try to replicate the problem under the same conditions,
  385.    and then without the presence of other resident programs.  (Often, a change
  386.    in the order residents are loaded can solve conflicts.)  If the problem can
  387.    be replicated, please write at the address above providing:
  388.  
  389.                      Your name, address, and a daytime phone number
  390.                      Program registration number (see the Help panel)
  391.                      Program version number (see the Help panel)
  392.                      A sufficiently detailed description of the problem(s)
  393.                      A list of all resident and nonresident programs in use
  394.                       and their loading sequence.
  395.  
  396.    LIMITATIONS
  397.  
  398.    The author makes no warranty, either implied or expressed, including, with-
  399.    out limitation, any warranty with respect to this Software documented here,
  400.    its quality, performance, or fitness for a particular purpose.  In no event
  401.    shall the author be liable for damage, whether direct, indirect, incidental,
  402.    special, or consequential, that arises from the use of or any defect in the
  403.    Software. The entire risk as to the quality and performance of the Software
  404.    is solely with the user, and not with the author and copyright owner.
  405.  
  406.    By using the Software, you acknowledge: (1) to have read and understood all
  407.    parts of this document, and (2) to have agreed with and accepted all of its
  408.    provisions.
  409.  
  410.  
  411.  
  412.  
  413.    Messages may be left:    c/o Sysop (Bill Walsh)
  414.    ~~~~~~~~~~~~~~~~~~~~     The DC Information Exchange BBS
  415.                             202-433-6639
  416.                             9600/2400 bps
  417.  
  418. ┌──────────────────────────────────────────────────────────────────────────────┐
  419. │ Designations claimed as trademark appear in initial capitals or all capitals │
  420. └──────────────────────────────────────────────────────────────────────────────┘
  421.