home *** CD-ROM | disk | FTP | other *** search
/ Turbo Toolbox / Turbo_Toolbox.iso / 1988 / 02 / screen_c / screen.h < prev    next >
Text File  |  1987-11-24  |  2KB  |  55 lines

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