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