home *** CD-ROM | disk | FTP | other *** search
- /* Last change dated 3.2.1991 */
-
- #ifndef KIWI_INC_IN
- #include<kiwi_inc.h>
- #define KIWI_INC_IN
- #endif
- #define KIWILIB_IN
- #define MAX_MODE_LEN 4
-
- #ifndef FILE
- #include<stdio.h>
- #endif
-
- struct kiwilib_screen_typ{
- int mode; /* Anzeiger welcher BS Mode aktuell ist */
- USHORT address; /* Bildschirmaddresse */
- int acces_mode; /* Zugriffsmethode 0=Direkt 1=bios 2=Standard */
- int cursor_x; /* Cursor Position x */
- int cursor_y; /* Cursor Position y */
- int cursor_size; /* Cursor Form */
- UCHAR init_back_ground; /* Initialisierungszeichen */
- UCHAR frame_color; /* Randfarbe wenn gesetzt */
- UCHAR attribut; /* Attribut */
- UCHAR fgct[MAX_COLOR]; /* Attributtabelle normal */
- UCHAR fgcti[MAX_COLOR]; /* Attributtabelle invers */
- UCHAR fg_init[MAX_COLOR]; /* Farbtabelle initialisiert */
- int color_set; /* Aktive Tabellenfarbe */
- int shadow; /* Fenster mit Schatten oder nicht */
- int error; /* Errorflag */
-
- USHORT far *screen_buffer; /* Far Pointer auf
- Bildschirmzwischenspeicher */
- int screen_wide; /* Bildschirmweite */
- int screen_height; /* Bildschirmhoehe */
- int screen_max; /* Anzahl Bytes durch Bildschirmpuffer */
-
- FILE *printer; /* Druckerstream */
- FILE *printer2; /* Druckerstream */
- UCHAR screen_mode[MAX_MODE_LEN];/* Bitfeld Screen */
- UCHAR print_mode[MAX_MODE_LEN]; /* Bitfeld Printer */
- UCHAR edit_mode[MAX_MODE_LEN]; /* Bitfeld Editor */
- UCHAR menu_mode[MAX_MODE_LEN]; /* Menufeld Menuwahl */
- UCHAR help_mode[MAX_MODE_LEN]; /* Bitfeld Helpsystem */
- UCHAR error_mode[MAX_MODE_LEN]; /* Bitfeld Helpsystem */
- };
-
- #ifndef KIWI_DEF
- extern struct kiwilib_screen_typ kiwi;
- #else
- struct kiwilib_screen_typ kiwi;
- #endif
-
-
- /* screen_mode [0] Bitverteilung
- bit 0 0 normal 1 invers
- bit 1 0 Ohne Hilfe 1 Hilfe aktiviert
- bit 2 0 Ohne Windows 1 Wondows on
- bit 3 0 Ohne Rand 1 Rand steht
- bit 4 0 Mit Pieps 1 Ohne Pieps
- bit 5 0 Ohne VSscreen 1 Mit Vscreen
- bit 6 0 Posmemory off 1 Position Memory on
- bit 7 0 No Proc Table 1 Procedure Table enabled
-
-
- screen_mode [1] Bitverteilung
- bit 0 0 normal 1 Window sind hidden
- bit 1 0 Ohne Slider 1 Windows mit Slider
- bit 2 0 BlinkBit ON 1 BlinkBit OFF 2 Farbtabelle
- bit 3 0 Ohne Error 1 Error aktiviert
-
- */
- #define screen_posm(x,y) ((x-1)+(y-1)*kiwi.screen_wide)
-
-
-
-
-