home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / lang / pascal / 7527 < prev    next >
Encoding:
Internet Message Format  |  1992-12-16  |  1.5 KB

  1. Path: sparky!uunet!enterpoop.mit.edu!eru.mt.luth.se!kth.se!kjell
  2. From: kjell@henry.e.kth.se (Kjell Rilbe)
  3. Newsgroups: comp.lang.pascal
  4. Subject: Disabling Pause key (Was: Re: Stopping Control-C...  I though I was...)
  5. Message-ID: <1992Dec16.140044.13715@kth.se>
  6. Date: 16 Dec 92 14:00:44 GMT
  7. References: <1992Dec13.093306.7988@crash> <1992Dec14.022619.4357@uwasa.fi> <2276@hsdndev.UUCP>
  8. Sender: usenet@kth.se (Usenet)
  9. Organization: Dept. of EE, Royal Institute of Technology, Stockholm, Sweden
  10. Lines: 21
  11. Nntp-Posting-Host: henry.e.kth.se
  12.  
  13. In article <2276@hsdndev.UUCP> rind@binoc.bih.harvard.edu (David Rind) writes:
  14. [Irrelevant stuff deleted]
  15. >The problem is that the pause key actually pauses the computer
  16. >via hardware. 
  17.  ^^^^^^^^^^^^
  18. No no no no no!!!! You *can* stop the pause key easily by hooking into
  19. int 9. The pause key, like every other key, generates scancodes when pressed.
  20. It does not, however, generate any scancodes when released, like the other
  21. keys do. I don't know the scancode sequence that Pause generates, but it
  22. is five bytes long. And it does not repeat.
  23.  
  24. The pause function is in the normal keyboard handling routine. Upon 
  25. recognizing the scancode sequence from the pause key, it just sits there
  26. in a do-nothing loop until another key is pressed.
  27.  
  28. /Kjell
  29. -- 
  30. ------------------------------------------------------------------------
  31. ! Kjell Rilbe           !  "There's only one way of life,              !
  32. ! kjell@elixir.e.kth.se !   and that's your own!"   ---The Levellers   !
  33. ------------------------------------------------------------------------
  34.