comp.lang.ada
 help / color / mirror / Atom feed
From: Alexander Antonenko <alexa@i.com.ua>
Subject: Re: How to lock keys.
Date: 16 Dec 2000 01:56:08 +0200
Date: 2000-12-16T01:56:08+02:00	[thread overview]
Message-ID: <m38zphutlz.fsf@saska.mix.local> (raw)
In-Reply-To: Mlt_5.8850$0U2.334755@news20.bellglobal.com

>>>>> "F" == Freelancer  writes:

F> I'm using ObjectAda and programming console programs in win98. I was
F> wondering if someone could tell me how to lock out any keys that I don't
F> want in my program.


F> For example : I would like to lock out CTRL+C so that it doesn't
F> terminate the program.

You can try something like this:

System.Interrupts.Block_Interrupt(
  System.Interrupts.Interrupt_Id(Ada.Interrupts.Names.SIGINT));

I don't know will this work in windows and with compilers other than
GNAT. In any case see packages Ada.Interrupts & System.Interrupts.

F> Thanks for your help! :)

-- 
Alexander Antonenko
mailto:alexa@i.com.ua
mailto:aga@mix.meow.kiev.ua

I suppose you think I think I know it all
		-- Ozzy



  parent reply	other threads:[~2000-12-15 23:56 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-12-15 18:24 How to lock keys Freelancer
2000-12-15 19:26 ` Larry Kilgallen
2000-12-15 20:40   ` Freelancer
2000-12-15 22:18     ` Ted Dennison
2000-12-15 22:32     ` Mike Silva
2000-12-15 23:54     ` Gautier
2000-12-16  3:45   ` DuckE
2000-12-16 14:07     ` Marin David Condic
2000-12-15 23:56 ` Alexander Antonenko [this message]
2000-12-16  3:36 ` DuckE
2000-12-16 14:15   ` Marin David Condic
2000-12-17 22:40     ` Freelancer
2000-12-18  1:30       ` DuckE
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox