Article View: comp.os.msdos.programmer
Article #282Re: stop CTRL_P for doing printscreen?
From: Charlie Wilkinson
Date: Thu, 06 Aug 1992 15:57
Date: Thu, 06 Aug 1992 15:57
24 lines
1900 bytes
1900 bytes
bbrown@infonode.ingr.com (Bailey Brown) writes: : I am writing a program and I want to use the CTRL_P key combination : in it. I am using bioskey() to read keys. When I press "ctrl-p" : my program does not see it, and when I exit my program, I get an : "abort retry fail ignore" message because the printer isn't turned : on. At first I thought 4dos was up to something, but the docs say : that ctrl-p is intercepted by the bios and has something to do : with printscreen. I there any way to get around this behavior? If you aren't too squeamish, you could write an new keyboard interrupt, or at least enough to grab the ^P and notify your program, and then chain to the original keyboard interrupt(?). -or you could convert the ^P to some more harmless character, feed it to the original kbd int and let your program detect the character at that point by more conventional means. No, I've never done it before either, but it should be a piece of cake. ;-) Hope this can at least be loosely construed as "help". -- cwilkins@irscscm.uucp /======================\ uunet!mimsy!prometheus!media!ka3ovk!irscscm!cwilkins | Micro-Sig(tm) pellet | N3HAZ@KA3RFE.MD.USA.NA | -just add water | ...or you can call me Charlie \======================/
Technical Details
Message-ID:
<1992Aug6.155723.12195@irscscm.UUCP>Path:
arc1-ca.pugleaf.net!sparky!uunet!wupost!darwin.sura.net!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!linac!unixhub!lll-winken!iggy.GW.Vitalink.COM!nocsun.NOC.Vitalink.COM!wetware!wsrcc!ka3ovk!irscscm!cwilkinsReferences:
<1992Jul30.041220.8028@infonode.ingr.com>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!wupost!darwin.sura.net!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!linac!unixhub!lll-winken!iggy.GW.Vitalink.COM!nocsun.NOC.Vitalink.COM!wetware!wsrcc!ka3ovk!irscscm!cwilkins From: cwilkins@irscscm.UUCP (Charlie Wilkinson) Newsgroups: comp.os.msdos.programmer Subject: Re: stop CTRL_P for doing printscreen? Message-ID: <1992Aug6.155723.12195@irscscm.UUCP> Date: 6 Aug 92 15:57:23 GMT References: <1992Jul30.041220.8028@infonode.ingr.com> Organization: Internal Revenue Service Lines: 24