home *** CD-ROM | disk | FTP | other *** search
/ Atari FTP / ATARI_FTP_0693.zip / ATARI_FTP_0693 / Mint / miwm.zoo / screen.h < prev   
C/C++ Source or Header  |  1991-12-07  |  1KB  |  41 lines

  1. #include <osbind.h>
  2.  
  3. #include "mintbind.h"
  4. #include "signal.h"
  5.  
  6. #define ALT_1 0x780000L
  7. #define ALT_2 0x790000L
  8. #define ALT_0 0x810000L
  9.  
  10. void flash_off(), flash_on();
  11.  
  12. typedef struct screen {
  13.     char    *base;        /* address of top left of screen */
  14.     int    fd;        /* associated pseudo-tty */
  15.     int    pid;        /* associated process id */
  16.     short    planesiz;    /* length of a screen scan line */
  17.     short    linelen;    /* length (in bytes) of a line of characters */    
  18.     short    maxx;        /* number of characters across */
  19.     short    maxy;        /* number of characters high */
  20.     short    cwidth;        /* character width (must be 8!) */
  21.     short    cheight;    /* character height */
  22.     short    cx, cy;        /* current (x,y) position of cursor */
  23.     void    (*state)();    /* current state (e.g. ESC seen) */
  24.     short    savex, savey;    /* saved values of x, y from ESC j */
  25.     short    flags;        /* e.g. cursor on/off */
  26.     short    escy1;        /* first char. for ESC Y */
  27.     long    *lineoff;    /* offset of screen lines */
  28.     long    lastlineoff;    /* (v->lineoff)[v->maxy-1] */
  29. } SCREEN;
  30.  
  31. #define NUMSCREENS 2    /* number of logical screens */
  32. SCREEN *screen[NUMSCREENS], *current;
  33.  
  34. /* possible flags */
  35. #define FINVERSE 0x0001    /* inverse video */
  36. #define FCURS     0x0002    /* cursor enabled */
  37. #define FWRAP     0x0004    /* wrap at end of line */
  38. #define FFLASH     0x0010    /* cursor is currently flashing */
  39.  
  40. #define KEYFD -1        /* file descriptor for the keyboard */
  41.