3 /* Include file for definitions pertaining to Wine's text-console
12 typedef struct CONSOLE_DRIVER
16 void (*write
)(char, int, int, int);
17 void (*moveCursor
)(char, char);
18 void (*getCursorPosition
)(char *, char *);
19 void (*getCharacterAtCursor
)(char *, int *, int *, int *);
20 void (*clearScreen
)();
22 /* Keyboard Functions */
23 int (*checkForKeystroke
)(char *, char *);
24 void (*getKeystroke
)(char *, char *);
26 /* Accellerator Functions (Screen) */
27 void (*clearWindow
)(char, char, char, char, int, int);
28 void (*scrollUpWindow
)(char, char, char, char, char, int, int);
29 void (*scrollDownWindow
)(char, char, char, char, char, int, int);
31 /* Accellerator Functions (Keyboard) */
32 char (*getCharacter
)();
41 CONSOLE_device driver
; /* Global driver struct */
46 void CONSOLE_Write(char out
, int fg_color
, int bg_color
, int attribute
);
47 void CONSOLE_MoveCursor(char row
, char col
);
48 void CONSOLE_ClearWindow(char, char, char, char, int, int);
49 void CONSOLE_ScrollUpWindow(char, char, char, char, char, int, int);
50 void CONSOLE_ScrollDownWindow(char, char, char, char, char, int, int);
51 int CONSOLE_CheckForKeystroke(char *, char*);
52 void CONSOLE_GetKeystroke(char *, char *);
53 void CONSOLE_GetCursorPosition(char *, char *);
54 void CONSOLE_GetCharacterAtCursor(char *, int *, int *, int *);
55 void CONSOLE_Refresh();
56 void CONSOLE_SetRefresh(int);
57 int CONSOLE_GetRefresh();
58 void CONSOLE_ClearScreen();
59 char CONSOLE_GetCharacter();
63 void GENERIC_ClearWindow(char, char, char, char, int, int);
64 void GENERIC_ScrollUpWindow(char, char, char, char, char, int, int);
65 void GENERIC_ScrollDownWindow(char, char, char, char, char, int, int);
66 char GENERIC_GetCharacter();
68 /* TTY specific defines */
69 void TTY_Write(char out
, int fg_color
, int bg_color
, int attribute
);
71 void TTY_GetKeystroke(char *, char *);
76 void NCURSES_Write(char out
, int fg_color
, int bg_color
, int attribute
);
80 int NCURSES_CheckForKeystroke(char *, char *);
81 void NCURSES_GetKeystroke(char *, char *);
82 void NCURSES_MoveCursor(char ,char);
83 void NCURSES_GetCursorPosition(char *, char *);
84 void NCURSES_GetCharacterAtCursor(char *, int *, int *, int *);
85 void NCURSES_Refresh();
86 void NCURSES_ClearScreen();
88 #endif /* WINE_NCURSES */
90 #endif /* CONSOLE_H */