home *** CD-ROM | disk | FTP | other *** search
/ Black Box 4 / BlackBox.cdr / editors / tde150.arj / CFGMACRO.H < prev    next >
C/C++ Source or Header  |  1992-04-01  |  1KB  |  44 lines

  1. /*
  2.  * New editor name:  tde, the Thomson-Davis Editor.
  3.  * Author:           Frank Davis
  4.  * Date:             June 5, 1991
  5.  *
  6.  */
  7.  
  8.  
  9. struct screen macro_screen[] = {
  10.  {1,0,"This utility reads an existing macro file.  The file must exist" },
  11.  {2,0,"before running this utility.  If you create a few favorite macros" },
  12.  {3,0,"in tde and save them to a file, you may use this utility to store" },
  13.  {4,0,"them in tde.exe, so that those macros will be available each time" },
  14.  {5,0,"you use tde.  Otherwise, you will have to create the macros or load"},
  15.  {6,0,"in the macros each time you use tde." },
  16. {10,20,"1. Install a macro file."},
  17. {12,20,"2. Exit"},
  18. {14,15,"Please enter your choice: "},
  19. {0,0,NULL}
  20. };
  21.  
  22. #define MAX_KEYS           256
  23. #define STROKE_LIMIT      1024  /* number of key strokes in playback buffer */
  24.  
  25. /*
  26.  * From the source code of tde.
  27.  */
  28.  
  29.  
  30. typedef struct {
  31.   int key;      /* key assinged to this node, which may be text or function */
  32.   int next;     /* pointer to next node in macro def */
  33. } STROKES;
  34.  
  35. /*
  36.  * structure for the macro buffer.
  37.  */
  38. typedef struct {
  39.    int  first_stroke[MAX_KEYS];         /* pointer to first key in macro */
  40.    STROKES strokes[STROKE_LIMIT];       /* buffer to hold key strokes */
  41. } MACRO;
  42.  
  43.  
  44.