home *** CD-ROM | disk | FTP | other *** search
/ RISC DISC 1 / RISC_DISC_1.iso / pd_share / code / oslib / Examples / p1-046 < prev    next >
Encoding:
Text File  |  1994-03-30  |  552 b   |  21 lines

  1. #include "messagetrans.h"
  2. #include "os.h"
  3.  
  4. extern void Acknowledge_Escape (void);
  5. static os_error Error = {error_ESCAPE, "Escape"}; /*error block for escape*/
  6.  
  7. void ex (void)
  8.  
  9. {  if ((os_read_escape_state () & _C) != NONE)
  10.    {  Acknowledge_Escape (); /*acknowledge it*/
  11.  
  12.       os_generate_error (xmessagetrans_error_lookup (&Error, NULL, NULL, 0,
  13.             SKIP, SKIP, SKIP, SKIP));
  14.  
  15.       /* Exactly the same effect would be given by
  16.  
  17.          messagetrans_error_lookup (&Error, NULL, NULL, 0, SKIP, SKIP, SKIP,
  18.                SKIP);
  19.       */
  20. }  }
  21.