🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.msdos.programmer
Article #4076

how do you mask the keyboard? & whereis antek?

#4076
From: Bryan D. Nehl
Date: Sun, 30 Dec 1990 21:45
38 lines
2171 bytes
I am have a problem that I need to implement a solution
for in a C program that I am working on.

The problem is that I want to mask out the control key
once they enter the program and then when the program exits
the control key will have its usual functionality.  I also
need to mask out the shift keys being simultaneously active.
Not to mention having to get rid of the Sys Rq key. :-)

I want to do this so that the user cannot hit ctrl-alt-del or
ctrl-break or ctrl-c.  Masking out the shift-shift and the 
Sys Rq would prevent the user from switching to a different
"window" when using a multitasking system.

Is the way to do this to write a small assembler function
to do something like:	in 64h,dx ; input from keyboard put into dx
then to apply apply the appropriate mask to dx?

This doesn't seem correct to me since the computer will still 
pick up the ctrl-alt-del and other key sequences?  What if I were
to grab int 19 and then take care of it all myself?  The problem I 
have with that is that none of the books I have cover what to do
when you grab an interrupt.  I know I am asking for trouble if I change
the keyboard interrupt! :-)  I see many system lock ups in the future. :-)

Anyone out there have any ideas?  Source code of any kind would be greatly
appreciated!

Also, antek@binoc.tamu.edu where are you?

Thanks.

Bryan.

/* === Bryan Nehl ===== kodiak%kodiakpc.uucp@phobos.cis.ksu.edu ===+
[  Software Engineer -- USDA -- WERU ][ kodiak@matt.ksu.ksu.edu    ]
[  kodiak@Kodiakpc.Manhattan.KS.US   ][ bdn@phobos.cis.ksu.edu     ]
+_________ ...!rutgers!ksuvax1!matt.ksu.ksu.edu!kodiak __________ */
Technical Details
Message-ID: <1990Dec30.214529.24355@maverick.ksu.ksu.edu>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!maverick.ksu.ksu.edu!matt.ksu.ksu.edu!kodiak

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!maverick.ksu.ksu.edu!matt.ksu.ksu.edu!kodiak
From: kodiak@matt.ksu.ksu.edu (Bryan D. Nehl)
Newsgroups: comp.os.msdos.programmer
Subject: how do you mask the keyboard? & whereis antek?
Keywords: keyboard programming assembler C
Message-ID: <1990Dec30.214529.24355@maverick.ksu.ksu.edu>
Date: 30 Dec 90 21:45:29 GMT
Sender: news@maverick.ksu.ksu.edu (The News Guru)
Distribution: na
Organization: Kansas State University
Lines: 39