graphics/psdrv forgets to pull in @DLLFLAGS@, and so is compiled non-PIC if
[wine/multimedia.git] / include / console.h
blob0f1fbebaca176d012274bad0c3b744c7424406f8
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 <stdio.h>
12 #include "config.h"
14 typedef struct CONSOLE_DRIVER
16 void (*init)();
17 void (*close)();
18 void (*write)(char, int, int, int);
19 void (*moveCursor)(char, char);
20 void (*getCursorPosition)(char *, char *);
21 void (*getCharacterAtCursor)(char *, int *, int *, int *);
22 void (*clearScreen)();
24 /* Keyboard Functions */
25 int (*checkForKeystroke)(char *, char *);
26 void (*getKeystroke)(char *, char *);
28 /* Accellerator Functions (Screen) */
29 void (*clearWindow)(char, char, char, char, int, int);
30 void (*scrollUpWindow)(char, char, char, char, char, int, int);
31 void (*scrollDownWindow)(char, char, char, char, char, int, int);
33 /* Accellerator Functions (Keyboard) */
34 char (*getCharacter)();
36 /* Other functions */
37 void (*refresh)();
39 /* Other data */
40 int norefresh;
41 FILE *console_out;
42 FILE *console_in;
44 } CONSOLE_device;
46 CONSOLE_device driver; /* Global driver struct */
48 /* Generic defines */
49 void CONSOLE_Init();
50 void CONSOLE_Close();
51 void CONSOLE_Write(char out, int fg_color, int bg_color, int attribute);
52 void CONSOLE_MoveCursor(char row, char col);
53 void CONSOLE_ClearWindow(char, char, char, char, int, int);
54 void CONSOLE_ScrollUpWindow(char, char, char, char, char, int, int);
55 void CONSOLE_ScrollDownWindow(char, char, char, char, char, int, int);
56 int CONSOLE_CheckForKeystroke(char *, char*);
57 void CONSOLE_GetKeystroke(char *, char *);
58 void CONSOLE_GetCursorPosition(char *, char *);
59 void CONSOLE_GetCharacterAtCursor(char *, int *, int *, int *);
60 void CONSOLE_Refresh();
61 void CONSOLE_SetRefresh(int);
62 int CONSOLE_GetRefresh();
63 void CONSOLE_ClearScreen();
64 char CONSOLE_GetCharacter();
66 /* Generic Defines */
67 void GENERIC_Start();
68 void GENERIC_ClearWindow(char, char, char, char, int, int);
69 void GENERIC_ScrollUpWindow(char, char, char, char, char, int, int);
70 void GENERIC_ScrollDownWindow(char, char, char, char, char, int, int);
71 char GENERIC_GetCharacter();
73 /* TTY specific defines */
74 void TTY_Write(char out, int fg_color, int bg_color, int attribute);
75 void TTY_Start();
76 void TTY_GetKeystroke(char *, char *);
78 #ifdef WINE_NCURSES
80 /* ncurses defines */
81 void NCURSES_Write(char out, int fg_color, int bg_color, int attribute);
82 void NCURSES_Start();
83 void NCURSES_Init();
84 void NCURSES_Close();
85 int NCURSES_CheckForKeystroke(char *, char *);
86 void NCURSES_GetKeystroke(char *, char *);
87 void NCURSES_MoveCursor(char ,char);
88 void NCURSES_GetCursorPosition(char *, char *);
89 void NCURSES_GetCharacterAtCursor(char *, int *, int *, int *);
90 void NCURSES_Refresh();
91 void NCURSES_ClearScreen();
93 #endif /* WINE_NCURSES */
95 /* Xterm specific defines */
96 void XTERM_Start();
97 void XTERM_Close();
98 void XTERM_Init();
100 #endif /* CONSOLE_H */