remove now useless vidixlib.h file
[mplayer/glamo.git] / osdep / getch2.h
blobb91bd7176dea6a2896e5a614b77f54deff2160b8
1 /* GyS-TermIO v2.0 (for GySmail v3) (C) 1999 A'rpi/ESP-team */
2 /* a very small replacement of ncurses library */
4 #ifndef MPLAYER_GETCH2_H
5 #define MPLAYER_GETCH2_H
7 /* Screen size. Initialized by load_termcap() and get_screen_size() */
8 extern int screen_width;
9 extern int screen_height;
11 /* Termcap code to erase to end of line */
12 extern char * erase_to_end_of_line;
14 /* Get screen-size using IOCTL call. */
15 extern void get_screen_size(void);
17 /* Load key definitions from the TERMCAP database. 'termtype' can be NULL */
18 extern int load_termcap(char *termtype);
20 /* Enable and disable STDIN line-buffering */
21 extern void getch2_enable(void);
22 extern void getch2_disable(void);
24 /* Read a character or a special key code (see keycodes.h) */
25 extern void getch2(void);
27 /* slave cmd function for Windows and OS/2 */
28 extern int mp_input_slave_cmd_func(int fd,char* dest,int size);
30 #if defined(__MINGW32__) || defined(__OS2__)
31 #define USE_SELECT 0
32 #define MP_INPUT_SLAVE_CMD_FUNC mp_input_slave_cmd_func
33 #else
34 #define USE_SELECT 1
35 #define MP_INPUT_SLAVE_CMD_FUNC NULL
36 #endif
38 #endif /* MPLAYER_GETCH2_H */