Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!tut.cis.ohio-state.edu!ucbvax!agate!bionet!uwm.edu!spool.mu.edu!munnari.oz.au!ariel!ucsvc.ucs.unimelb.edu.au!wehi.dn.mu.oz!baxter_a From: baxter_a@wehi.dn.mu.oz Newsgroups: comp.sys.amiga.programmer Subject: Re: Dumb windows from SAS/C programs on Workbench Message-ID: <1991May17.190221.24597@wehi.dn.mu.oz> Date: 17 May 91 19:02:20 GMT References: <1991May14.164909.19186@NCoast.ORG> <1991May17.023000.1652@NCoast.ORG> Organization: Walter & Eliza Hall Institute Lines: 19 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? > > > Dave I sent you mail on this. Sorry it didn't get through. Move a copy of umain.c to you source directory, edit out the line handling cntrl-c, compile and link with your own module that handles the key hit you want to use the way you would handle any other key hit (RAWKEY or whatever). regards Alan