Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!elroy.jpl.nasa.gov!decwrl!mcnc!wolves!deepthot!jay From: jay@deepthot.cary.nc.us (Jay Denebeim) Newsgroups: comp.sys.amiga.programmer Subject: Re: Dumb windows from SAS/C programs on Workbench Message-ID: Date: 18 May 91 16:41:42 GMT References: <1991May14.164909.19186@NCoast.ORG> <1991May17.023000.1652@NCoast.ORG> Organization: The Software Distillery Lines: 31 In article <1991May17.023000.1652@NCoast.ORG> davewt@NCoast.ORG (David Wright) writes: > This is not what I want to do. I am quite familiar with the >"onbreak()" type calls, but that is not how I want to handle the >events. What *I* want to do is more like this: > > while(!gotError && !gotUserBreak()) > { > /* code here */ > } > Try this: #include #include struct Task *mytask=FindTask(NULL); if (mytask->tc_SigRecvd & SIGBREAKF_CTRL_C) and so on... > > > Dave -- |_o_o|\\ |. o.| || The Jay Denebeim | . | || Software | o | || Distillery | |// Address: UUCP: mcnc.org!deepthot.uucp!jay ====== Internet: jay@deepthot.cary.nc.us BBS:(919)-460-7430 VOICE:(919)-460-6934