2001-02-24 20:28:24 +00:00
|
|
|
/* GyS-TermIO v2.0 (for GySmail v3) (C) 1999 A'rpi/ESP-team */
|
|
|
|
/* a very small replacement of ncurses library */
|
|
|
|
|
2008-02-22 09:09:46 +00:00
|
|
|
#ifndef MPLAYER_GETCH2_H
|
|
|
|
#define MPLAYER_GETCH2_H
|
2008-01-01 21:35:58 +00:00
|
|
|
|
2001-02-24 20:28:24 +00:00
|
|
|
/* Screen size. Initialized by load_termcap() and get_screen_size() */
|
|
|
|
extern int screen_width;
|
|
|
|
extern int screen_height;
|
|
|
|
|
2005-12-25 18:26:35 +00:00
|
|
|
/* Termcap code to erase to end of line */
|
|
|
|
extern char * erase_to_end_of_line;
|
|
|
|
|
2001-02-24 20:28:24 +00:00
|
|
|
/* Get screen-size using IOCTL call. */
|
2006-02-09 14:08:03 +00:00
|
|
|
extern void get_screen_size(void);
|
2001-02-24 20:28:24 +00:00
|
|
|
|
|
|
|
/* Load key definitions from the TERMCAP database. 'termtype' can be NULL */
|
|
|
|
extern int load_termcap(char *termtype);
|
|
|
|
|
|
|
|
/* Enable and disable STDIN line-buffering */
|
2006-02-09 14:08:03 +00:00
|
|
|
extern void getch2_enable(void);
|
|
|
|
extern void getch2_disable(void);
|
2001-02-24 20:28:24 +00:00
|
|
|
|
|
|
|
/* Read a character or a special key code (see keycodes.h) */
|
2007-08-25 04:28:08 +00:00
|
|
|
extern void getch2(void);
|
2001-02-24 20:28:24 +00:00
|
|
|
|
2008-02-21 16:20:33 +00:00
|
|
|
/* slave cmd function for Windows and OS/2 */
|
2008-02-21 16:15:31 +00:00
|
|
|
extern int mp_input_slave_cmd_func(int fd,char* dest,int size);
|
2008-01-01 21:35:58 +00:00
|
|
|
|
2008-02-21 16:20:33 +00:00
|
|
|
#if defined(__MINGW32__) || defined(__OS2__)
|
|
|
|
#define USE_SELECT 0
|
|
|
|
#define MP_INPUT_SLAVE_CMD_FUNC mp_input_slave_cmd_func
|
|
|
|
#else
|
|
|
|
#define USE_SELECT 1
|
|
|
|
#define MP_INPUT_SLAVE_CMD_FUNC NULL
|
|
|
|
#endif
|
|
|
|
|
2008-02-22 09:09:46 +00:00
|
|
|
#endif /* MPLAYER_GETCH2_H */
|