home *** CD-ROM | disk | FTP | other *** search
/ Turbo Toolbox / Turbo_Toolbox.iso / 1989 / 12 / mixed / screen.h < prev    next >
Encoding:
C/C++ Source or Header  |  1989-08-18  |  1.7 KB  |  64 lines

  1. /* ------------------------------------------------------ */
  2. /*                      SCREEN.H                          */
  3. /* ------------------------------------------------------ */
  4.  
  5. /*
  6. #if !defined (__TURBOC__)
  7. #  define far
  8. #endif
  9. */
  10.  
  11. /* Bildschirm-Segment Monochrom ------------------------- */
  12.  
  13. #define MONOBASE 0xb000
  14.  
  15. /* Bildschirm-Segment Color ----------------------------- */
  16.  
  17. #define COLORBASE 0xb800
  18.  
  19. /* Mono-Attribute --------------------------------------- */
  20.  
  21. #define ATT_NORMAL 7
  22. #define ATT_INVERS 112
  23. #define ATT_SCHWARZ 0
  24. #define ATT_UNTERSTRICHEN 1
  25. #define ATT_HELL 8
  26. #define ATT_BLINK 128
  27.  
  28. /* Farb-Attribute --------------------------------------- */
  29.  
  30. #define ATT_BLAU_V 1
  31. #define ATT_GRUEN_V 2
  32. #define ATT_ROT_V 4
  33. #define ATT_INT_V 8
  34. #define ATT_BLAU_H 16
  35. #define ATT_GRUEN_H 32
  36. #define ATT_ROT_H 64
  37. #define ATT_INT_H 128
  38.  
  39. /* maximale Fensterzahl und "kein-Fenster-Kennzeichen" -- */
  40.  
  41. #define MAX_WINDOWS 10
  42. #define NOWIN -1
  43.  
  44. /* hier an Monitor anpassen ! --------------------------- */
  45. #define SCREEN_SEGMENT COLORBASE      /* ...oder MONOBASE */
  46.  
  47.  
  48. #define SCREEN_OFFSET(x,y) ((80*(y-1))+((x-1)))
  49.  
  50.                                   /* Funktions-Prototypen */
  51. void set_attribut(unsigned char);
  52. void make_relativ(int *, int *);
  53. void set_cursor(int, int);
  54. void cursor(int);
  55. void printxy(int, int, unsigned char);
  56. void printsxy(int, int, char *);
  57. unsigned char readxy(int, int);
  58. void readsxy(int, int, int, char *);
  59. void clrscr(int, int, int, int);
  60. void open_window(int, int, int, int, int);
  61. void close_window(void);
  62. /* ------------------------------------------------------ */
  63. /*                 Ende von SCREEN.H                      */
  64.