Xref: utzoo comp.lang.pascal:6537 comp.lang.c:38956 comp.lang.misc:7702 Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!elroy.jpl.nasa.gov!swrinde!mips!atha!aunro!ukma!xanth!usenet From: popkin@cs.odu.edu (Brian N. Popkin) Newsgroups: comp.lang.pascal,comp.lang.c,comp.lang.misc Subject: Disabling Keys In Turbo Pascal/C and sensing a key pressed. Message-ID: <1991May2.185319.4273@cs.odu.edu> Date: 2 May 91 18:53:19 GMT Sender: usenet@cs.odu.edu (Usenet News Poster) Organization: Old Dominion University, Norfolk Virginia Lines: 34 Originator: popkin@oisc.cs.odu.edu Nntp-Posting-Host: oisc.cs.odu.edu Any help would be greatly appreciated!!! I am currently writing programs in turbo c++ (v 1.0) and turbo pascal (v 6.0). I am looking for code or any suggestions on how to do the following.. 1) Disable a key like the break key so you can't break out of my program.. or diable any other key.. 2) Sense that a key has been pressed.. like if someome presses f1 then a message appears on the screen or if you try to break it tells you, you can't... Thanks.. mail to popkin@cs.odu.edu Brian *-----------------------------------------------------------------------------* * * * Brian Popkin * * Computer Science Major - Systems Programing * * Old Dominion University * * Norfolk, Virginia USA * * * * Others Areas Of Interest: Artificial Intelligence, Expert Systems, * * Networks, And Telecommunications * * * * Email Address: popkin@cs.odu.edu * * popkin@xanth.cs.odu.edu * * popkin@gnu.ai.mit.edu * * * *-----------------------------------------------------------------------------*