TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: Darin Mcbride
from: David Muir
date: 1996-03-25 22:26:32
subject: Re: next .

-=> Quoting Darin Mcbride to David Muir <=-

 DM> A) prevent Ctrl-C from being intercepted, and start it again
 DM> (i.e., stop it for a critical part of the process, such as copying a

    Can't say as I've ever wanted to "re-enable" it. I suppose
though that by 
putting the keyboard in Binary mode you could interecpt CTRL-C and CTRL-P and 
decide what to do with them via  flags or semaphores. The trick of course is 
to remeber to reassign the original ketboard before shelling to OS/2 or 
exiting.

 DM> backup over the original) B) enable (and disable) ctrl-p to
 DM> print the screen 

    Enabling the printscreen is a system toggle and I honestly couldn't tell 
you now where it's located.
    To put the keyboard in binary mode the following code was translated from 
C code from by an earlier volunteer.

CONST
hkbd        : WORD     = 0;                  {alternate keyboard handle}

VAR
newkbdinfo  : kbdinfo;

Begin
   KbdOpen(hkbd);
   KbdGetFocus(IO_WAIT, hkbd);
   newkbdinfo.cb := sizeof(newkbdinfo);
   KbdGetStatus(newkbdinfo, hkbd);
   newkbdinfo.fsMask := (newkbdinfo.fsMask and $00F7) or $0004;
   KbdSetStatus(newkbdinfo, hkbd);

{insert code here}

   KbdClose(hkbd);
   END.

Dave...

... THD ProScan support on the web, http://www.naples.net/~nfn03274
~~~ TGWave v1.12+
--- GEcho 1.11+
* Origin: fks Online! * Ontario, Canada * (905)820-7273 * (1:259/423)
SEEN-BY: 50/99 78/0 270/101 620/243 711/401 409 410 413 430 808 809 934 955
SEEN-BY: 712/407 515 517 628 713/888 800/1 7877/2809
@PATH: 259/423 400 99 250/99 3615/50 396/1 270/101 712/515 711/808 809 934

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.