Added console support.
[wine/multimedia.git] / include / console.h
blob6e34bfee3fc672d952ea52261b5c124b497f4966
1 /* Console.H */
3 /* Include file for definitions pertaining to Wine's text-console
4 interface.
5 */
7 #ifndef CONSOLE_H
8 #define CONSOLE_H
10 #include "config.h"
12 typedef struct CONSOLE_DRIVER
14 void (*init)();
15 void (*close)();
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)();
34 /* Other functions */
35 void (*refresh)();
37 /* Other data */
38 int norefresh;
39 } CONSOLE_device;
41 CONSOLE_device driver; /* Global driver struct */
43 /* Generic defines */
44 void CONSOLE_Init();
45 void CONSOLE_Close();
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();
61 /* Generic Defines */
62 void GENERIC_Start();
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);
70 void TTY_Start();
71 void TTY_GetKeystroke(char *, char *);
73 #ifdef WINE_NCURSES
75 /* ncurses defines */
76 void NCURSES_Write(char out, int fg_color, int bg_color, int attribute);
77 void NCURSES_Start();
78 void NCURSES_Init();
79 void NCURSES_Close();
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 */