From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,FREEMAIL_FROM, INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,1ffdab534421bb89 X-Google-Attributes: gid103376,public From: johnherro@aol.com (John Herro) Subject: Re: How to bypass CTRL-C? Date: 1999/01/28 Message-ID: <19990128091704.01259.00000118@ngol04.aol.com>#1/1 X-Deja-AN: 437939443 Organization: AOL http://www.aol.com Newsgroups: comp.lang.ada X-Admin: news@aol.com Date: 1999-01-28T00:00:00+00:00 List-Id: 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.