Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!think.com!zaphod.mps.ohio-state.edu!ub!rutgers!cbmvax!cbmehq!cbmger!kbsaar!fjrei From: fjrei@kbsaar.UUCP (Franz-Josef Reichert) Newsgroups: comp.sys.amiga.programmer Subject: Re: Dumb windows from SAS/C programs on Workbench Message-ID: Date: 18 May 91 18:18:59 GMT References: <1991May14.164909.19186@NCoast.ORG> <1991May17.023000.1652@NCoast.ORG> Organization: Private Amiga Site Lines: 18 In article <1991May17.023000.1652@NCoast.ORG> davewt@NCoast.ORG (David Wright) writes: > So basically what I want is something that will evaluate down to a >logical true or false if the user has pressed CTRL-C (or some other >control character the operator has decided to allow). Under Draco you could >do this very simply by &'ing bits with SIGBRKF_C, but this same method, >although it compiles fine, appears to do nothing under SAS/C. > Any ideas why? Use chkabort() (P. L25) to figure out whether the user hits ^-C. Or have a direct look at the task's signal bits: #include if(SetSignal(0L,0L) & SIGBREAKF_CTRL_C) /* => ^-C pressed */ -- Best regards, Franz-Josef Reichert VOICE: +49 6805 7417 Kuchlingerstrasse 13 UUCP: ...uunet!cbmvax!cbmehq!cbmger!kbsaar!fjrei D-6601 Kleinblittersdorf GERMANY