home *** CD-ROM | disk | FTP | other *** search
/ Phoenix CD 2.0 / Phoenix_CD.cdr / 24b / keyboard.zip / SCROLOCK.DOC < prev    next >
Text File  |  1986-09-14  |  2KB  |  42 lines

  1.         This routine is intended to make the scroll lock key
  2.         (uppermost, rightmost key) function as its name implies.
  3.         That is, stop the screen from scrolling.
  4.  
  5.         BIOS normally performs this function in response to
  6.         control-numlock, for some mysterious reason, but the result
  7.         is neither elegant, convenient, nor esthetically pleasing.
  8.  
  9.         This routine works by installing a resident module
  10.         that intercepts interrupts for video output.
  11.  
  12.         Once this module is installed, any request for BIOS video
  13.         output comes here first. This module first passes the request
  14.         on to BIOS, then it checks the status of the scroll lock
  15.         toggle (which is maintained but ignored by BIOS). If scroll
  16.         lock is on, this routine will loop until it goes off.
  17.  
  18.         Scroll locking action may be turned on and off by re-running
  19.         this module.
  20.  
  21.         Two items of interest should be noted:
  22.  
  23.         1)      This routine halts output by stopping the machine
  24.                 from doing anything at all except wait for scroll lock
  25.                 to go away. Hence, hitting scroll lock causes the
  26.                 machine to effectively grind to a halt (the same is
  27.                 true, however, about control-numlock).
  28.  
  29.         2)      The machine does not, however, grind to a halt until
  30.                 it tries to output something.  So you can hit scroll
  31.                 lock, and your machine will continue to run until
  32.                 it tries to type something.
  33.  
  34.         3)      This module was originally driven by the keyboard
  35.                 interrupt, and hence was guaranteed to pick up on
  36.                 a keystroke, but it would occasionally stop the machine
  37.                 when video output was disabled (thus reducing its
  38.                 usefulness). This version is much less likely to do
  39.                 that, but it will not stop output which is being
  40.                 generated without using BIOS. Such output, however,
  41.                 generally does not scroll.
  42.