home *** CD-ROM | disk | FTP | other *** search
/ Carousel Volume 2 #1 / carousel.iso / mactosh / code / microema.sit / src / uemacs_main.c < prev    next >
Encoding:
C/C++ Source or Header  |  1989-06-09  |  1.5 KB  |  84 lines  |  [TEXT/Earl]

  1. /*
  2.  *    uEmacs_Main.c
  3.  */
  4. #define termdef 1            /* don't define "term" external */
  5.  
  6. #define maindef
  7.  
  8. #include    <stdio.h>
  9. #include    "estruct.h"
  10. #include    "efunc.h"    /* function declarations and name table */
  11. #include    "edef.h"
  12. #include    "ebind.h"    /* default key bindings */
  13. #include    "epath.h"
  14. #if FINDER
  15.  
  16. #if MPW
  17. #include <quickdraw.h>
  18. #endif
  19. #if LSC
  20. #include <QuickDraw.h>
  21. #endif
  22.  
  23.  
  24. Point         where = {80,80};
  25. char        ourAppName[32];
  26. short        ourRefNum;
  27. short        ourVRefNum;
  28.  
  29. Pattern     Popup = {255,0,255,0,255,0,255,0};
  30. Pattern     *popupPat = (Pattern*)Popup;
  31.  
  32. #define NROW    25        /* Screen size.         */
  33. #define NCOL    80        /* Edit if you want to.     */
  34. #define MARGIN    8        /* size of minimim margin and    */
  35. #define SCRSIZ    64        /* scroll size for extended lines */
  36. #define NPAUSE    10        /* # times thru update to pause */
  37.  
  38. extern    int    mac_ttyopen();            /* Forward references.        */
  39. extern    int    mac_ttygetc();
  40. extern    int    mac_ttyputc();
  41. extern    int    mac_ttymove();
  42. extern    int    mac_ttyeeol();
  43. extern    int    mac_ttyeeop();
  44. extern    int    mac_ttybeep();
  45. extern    int    mac_ttyrev();
  46. extern    int    dummy();
  47. extern    int    mac_ttysetfor();
  48. extern    int    mac_ttysetback();
  49.  
  50. /*
  51.  * Standard terminal interface dispatch table. Most of the fields point 
  52.  * right here somewhere.
  53.  */
  54. TERM    term    = {
  55.     NCOL-1,         /* filled in later */
  56.     NCOL,
  57.     NROW,            /* filled in later */
  58.     NROW,
  59.     MARGIN,
  60.     SCRSIZ,
  61.     NPAUSE,
  62.     mac_ttyopen,
  63.     dummy,
  64.     dummy,
  65.     dummy,
  66.     mac_ttygetc,
  67.     mac_ttyputc,
  68.     dummy,
  69.     mac_ttymove,
  70.     mac_ttyeeol,
  71.     mac_ttyeeop,
  72.     mac_ttybeep,
  73.     mac_ttyrev,
  74.     dummy
  75. #if COLOR
  76.     ,
  77.     mac_ttysetfor,
  78.     mac_ttysetback
  79. #endif
  80.     ,
  81. };
  82.  
  83. #endif
  84.