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,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: bourguet@my-dejanews.com Subject: Re: How to bypass CTRL-C? Date: 1999/01/28 Message-ID: <78pei6$srd$1@nnrp1.dejanews.com>#1/1 X-Deja-AN: 437690830 References: <36AF61EE.93C36E67@videotron.com> X-Http-Proxy: NetCache@sj-netcache: Version 3.3R2P1D3, 1.0 x8.dejanews.com:80 (Squid/1.1.22) for client 158.140.3.201 Organization: Deja News - The Leader in Internet Discussion X-Article-Creation-Date: Thu Jan 28 10:35:50 1999 GMT Newsgroups: comp.lang.ada X-Http-User-Agent: Mozilla/4.05 [en] (X11; I; SunOS 5.5.1 sun4u) Date: 1999-01-28T00:00:00+00:00 List-Id: In article <36AF61EE.93C36E67@videotron.com>, psx2@videotron.ca wrote: > The topic says it all. > How can I block the CTRL-C keys so that the > program can not terminate that way. > > Thanks. > Depending on your compiler and OS, CTRL-C may be interpreted as an interuption for which you may attach an handler. (With GNAT 3.10p, you could not attach handler to this interrupt, GNAT 3.11p has a provision for it but I've no tried yet). Yours, -- Jean-Marc -----------== Posted via Deja News, The Discussion Network ==---------- http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own