home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / sys / amiga / programm / 12865 < prev    next >
Encoding:
Internet Message Format  |  1992-08-30  |  1.5 KB

  1. Path: sparky!uunet!charon.amdahl.com!pacbell.com!att!linac!pacific.mps.ohio-state.edu!cis.ohio-state.edu!zaphod.mps.ohio-state.edu!uakari.primate.wisc.edu!ames!agate!stanford.edu!rutgers!cbmvax!cbmehq!cbmger!edohwg!heinz
  2. From: heinz@edohwg.UUCP (Heinz Wrobel)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: Breaks
  5. Message-ID: <heinz.03a6@edohwg.UUCP>
  6. Date: 30 Aug 92 10:54:52 GMT
  7. References: <5215@tuegate.tue.nl>
  8. Organization: Edotronik GmbH
  9. Lines: 27
  10.  
  11. In article <5215@tuegate.tue.nl> marcelk@blade.stack.urc.tue.nl (Marcel van Kervinck) writes:
  12. >This is probably a FAQ, but I can't find a decent answer anywhere.
  13. >
  14. >What is the correct way to detect user breaks (CTRL-C,D,E,F) in machine
  15. >code? I noticed that they are implemented as signals (12..15 as I remember)
  16.  
  17. You use a Signal() call to check SIGBREAKF_CTRL_C/D/E/F to check them or
  18. better CheckSignal() in >=V36.
  19.  
  20. >but according to my documentation those are reserved for system use.
  21.  
  22. They have a system defined meaning. You are allowed to check for them.
  23.  
  24. >Is it correct to use SetException() on them?
  25.  
  26. It's ok to use SetException() on them but maybe it's easier for you to use
  27. CheckSignal() in your program.
  28.  
  29. > - Marcel van Kervinck
  30.  
  31. --
  32. Heinz Wrobel, Edotronik GmbH (ECG018)
  33. FAX +49 89 850 51 25 / TEL +49 89 850 25 20 (HOME!&VOICE, sometimes...)
  34. Path: cbmehq!cbmger!edohwg!heinz@cbmvax.commodore.com
  35. "It's good to have a mouse, it's faster if you can do without one..."
  36. "He who doesn't develop with an A2024 doesn't know about font independent
  37.  user interfaces..."
  38.