home *** CD-ROM | disk | FTP | other *** search
/ The Fred Fish Collection 1.5 / ffcollection-1-5-1992-11.iso / ff_disks / 200-299 / ff216.lzh / C64Emul / src / screen.h < prev   
C/C++ Source or Header  |  1989-06-02  |  1KB  |  60 lines

  1. /*
  2.  *        Commodore 64 Spoof Emulator (C) Eddy Carroll, 1st April 1988
  3.  *
  4.  * Module: SCREEN.H
  5.  *
  6.  * This module contains standard definitions for all modules
  7.  * the emulator.
  8.  *
  9.  */
  10.  
  11. /* Control character representations */
  12. #define C_CR        '\r'    /* Must be real */
  13. #define C_UP        '\01'
  14. #define C_DOWN        '\02'
  15. #define C_LEFT        '\03'
  16. #define C_RIGHT        '\04'
  17. #define C_HOME        '\05'
  18. #define C_INSERT    '\06'
  19. #define C_CLEAR        '\07'
  20. #define C_DEL        '\010'    /* Must be real */
  21. #define C_REDRAW    '\014'    /* Control-L    */
  22.  
  23. #define CSI            '\233'
  24.  
  25. /* Menu keys */
  26. #define M_ABOUT 1
  27. #define M_TITLE 2
  28. #define M_QUIT  3
  29.  
  30. /* For enabling/disabling cursor */
  31. #define CURSORON  writechar(cursorx,cursory,screen[cursory][cursorx],1)
  32. #define CURSOROFF writechar(cursorx,cursory,screen[cursory][cursorx],0)
  33.  
  34. #ifndef SCREEN
  35. #define GLOB extern
  36. #endif
  37. #ifdef SCREEN
  38. #define GLOB
  39. #endif
  40.  
  41. /*
  42.  * Global Variables
  43.  *
  44.  */
  45.  
  46. GLOB int cursorx, cursory;        /* Position of cursor on screen */
  47. GLOB int titlebar;                /* Start off with titlebar off  */
  48. GLOB char screen[25][40];        /* Stores characters for screen */
  49. GLOB struct Screen *myscreen;
  50. GLOB struct Window *mywin;
  51. GLOB struct IntuitionBase *IntuitionBase;
  52. GLOB struct GfxBase *GfxBase;
  53. GLOB char constring[5];            /* For reads from console         */
  54. GLOB struct IOStdReq *ConReadReq;
  55. GLOB struct MsgPort *ConReadPort;
  56.  
  57. extern struct MsgPort *CreatePort();
  58. extern struct IOStdReq *CreateStdIO();
  59. extern void DeletePort(),DeleteStdIO();
  60.