Article View: comp.sys.atari.st
Article #27309tesing for cntrl-c
From: Keith Hedger
Date: Mon, 22 Jun 1987 13:20
Date: Mon, 22 Jun 1987 13:20
14 lines
1280 bytes
1280 bytes
Hi out there....well it's time for another question that will probably be ridiculously elementary for most of you. I am writing a program that will basically run a 'do until cntrl c is pushed' kind of loop. My question - How do you test for cntrl c ????? I am using the Megamax C compiler and I found one function called Ccein (or something like that ) that says it will echo keyboard input without displaying it except cntrl q cntrl s and cntrl c which will be trapped and acted upon. Sorry if I'm a little ( or a lot ) slow, but being fairly new to the world of C, this is pretty cryptic to me. Is this the correct way to test for cntrl c ? If so, how do I use this function (examples please). If not, what's a pretty standard way of doing this ?????? Your responses will be greatly appreciated, keith hedger
Technical Details
Message-ID:
<17006@cca.CCA.COM>Path:
arc1-ca.pugleaf.net!utzoo!mnetor!seismo!ut-sally!husc6!cca!m204helpShow Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: arc1-ca.pugleaf.net!utzoo!mnetor!seismo!ut-sally!husc6!cca!m204help From: m204help@cca.CCA.COM (Keith Hedger) Newsgroups: comp.sys.atari.st Subject: tesing for cntrl-c Message-ID: <17006@cca.CCA.COM> Date: Mon, 22-Jun-87 09:20:29 EDT Article-I.D.: cca.17006 Posted: Mon Jun 22 09:20:29 1987 Date-Received: Tue, 23-Jun-87 04:02:31 EDT Organization: Computer Corp. of America, Cambridge, MA Lines: 14