From: johnherro@aol.com (John Herro)
Subject: Re: How to bypass CTRL-C?
Date: 1999/01/28
Date: 1999-01-28T00:00:00+00:00 [thread overview]
Message-ID: <19990128091704.01259.00000118@ngol04.aol.com> (raw)
psx2@videotron.ca wrote:
> How can I block the CTRL-C keys so that the
> program can not terminate that way.
If you're using DOS with an Ada compiler that lets you call the DOS interrupts,
call interrupt 16#21#, function 16#07#. This will put the character in AL
without echoing it, and without allowing Ctrl-C to break. Separately echo the
character if you want.
If you're using DOS with the Open Ada compiler, there's a simpler solution:
with Tty;
...
C : Character;
...
C := Tty.Get(Direct => True);
- John Herro
You can download a shareware AdaTutor program at
http://members.aol.com/AdaTutor.
next reply other threads:[~1999-01-28 0:00 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-01-28 0:00 John Herro [this message]
-- strict thread matches above, loose matches on Subject: below --
1999-01-27 0:00 How to bypass CTRL-C? psx2
1999-01-27 0:00 ` Larry Kilgallen
1999-01-28 0:00 ` Geert Bosch
1999-01-28 0:00 ` bourguet
1999-01-28 0:00 ` robert_dewar
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox