home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c185 / 1.ddi / FUNCS.EXE / CSCAPE / SOURCE / SPCABORT.C < prev    next >
Encoding:
C/C++ Source or Header  |  1989-09-07  |  574 b   |  39 lines

  1. /*
  2.     spcabort.c
  3.  
  4.     % spc_Abort
  5.  
  6.     special_key function.
  7.  
  8.     Traps ESCAPE and sets baton to SED_ABORT.
  9.  
  10.     C-scape 3.1
  11.     Copyright (c) 1988, by Oakland Group, Inc.
  12.     ALL RIGHTS RESERVED.
  13.  
  14.     Revision History:
  15.     -----------------
  16. */
  17.  
  18. #include <stdio.h>
  19.  
  20. #include "cscape.h"
  21. #include "scancode.h"
  22.  
  23. boolean spc_Abort(sed, scancode)
  24.     sed_type sed;
  25.     int scancode;
  26. /*
  27.     Sets baton to SED_ABORT and exits the sed when ESC is pressed.
  28. */
  29. {
  30.     if (scancode == ESC) {
  31.         sed_SetBaton(sed, SED_ABORT);
  32.         sed_ToggleExit(sed);
  33.         return(TRUE);
  34.     }
  35.  
  36.     return(FALSE);
  37. }
  38.  
  39.