Mercurial > mplayer.hg
annotate osdep/getch2.h @ 28721:267dd38c800e
When converting from a non alpha format to an alpha format, defaults to all ones rather than all zeroes
author | sdrik |
---|---|
date | Sat, 28 Feb 2009 08:01:52 +0000 |
parents | 9e739bdb049c |
children | 5cfef41a1771 |
rev | line source |
---|---|
1 | 1 /* GyS-TermIO v2.0 (for GySmail v3) (C) 1999 A'rpi/ESP-team */ |
2 /* a very small replacement of ncurses library */ | |
3 | |
26029 | 4 #ifndef MPLAYER_GETCH2_H |
5 #define MPLAYER_GETCH2_H | |
25553
6ac1ece1f9fe
Add multiple inclusion guards to all header files that lack them.
diego
parents:
24129
diff
changeset
|
6 |
1 | 7 /* Screen size. Initialized by load_termcap() and get_screen_size() */ |
8 extern int screen_width; | |
9 extern int screen_height; | |
10 | |
17240
11459d1ff17c
Use termcap "erase to end of line" character code instead of using spaces
ods15
parents:
9380
diff
changeset
|
11 /* Termcap code to erase to end of line */ |
11459d1ff17c
Use termcap "erase to end of line" character code instead of using spaces
ods15
parents:
9380
diff
changeset
|
12 extern char * erase_to_end_of_line; |
11459d1ff17c
Use termcap "erase to end of line" character code instead of using spaces
ods15
parents:
9380
diff
changeset
|
13 |
1 | 14 /* Get screen-size using IOCTL call. */ |
28051 | 15 void get_screen_size(void); |
1 | 16 |
17 /* Load key definitions from the TERMCAP database. 'termtype' can be NULL */ | |
28051 | 18 int load_termcap(char *termtype); |
1 | 19 |
20 /* Enable and disable STDIN line-buffering */ | |
28051 | 21 void getch2_enable(void); |
22 void getch2_disable(void); | |
1 | 23 |
24 /* Read a character or a special key code (see keycodes.h) */ | |
28051 | 25 void getch2(void); |
1 | 26 |
26016 | 27 /* slave cmd function for Windows and OS/2 */ |
28051 | 28 int mp_input_slave_cmd_func(int fd,char* dest,int size); |
25553
6ac1ece1f9fe
Add multiple inclusion guards to all header files that lack them.
diego
parents:
24129
diff
changeset
|
29 |
26016 | 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 | |
37 | |
26029 | 38 #endif /* MPLAYER_GETCH2_H */ |