Mercurial > mplayer.hg
annotate osdep/getch2.h @ 28749:4392751ddd24
cosmetics: Remove trailing whitespace.
author | diego |
---|---|
date | Sun, 01 Mar 2009 17:48:05 +0000 |
parents | 5cfef41a1771 |
children | 8134ffd057d7 |
rev | line source |
---|---|
28744 | 1 /* |
2 * GyS-TermIO v2.0 (for GySmail v3) | |
3 * a very small replacement of ncurses library | |
4 * | |
5 * This file is part of MPlayer. | |
6 * | |
7 * MPlayer is free software; you can redistribute it and/or modify | |
8 * it under the terms of the GNU General Public License as published by | |
9 * the Free Software Foundation; either version 2 of the License, or | |
10 * (at your option) any later version. | |
11 * | |
12 * MPlayer is distributed in the hope that it will be useful, | |
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
15 * GNU General Public License for more details. | |
16 * | |
17 * You should have received a copy of the GNU General Public License along | |
18 * with MPlayer; if not, write to the Free Software Foundation, Inc., | |
19 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. | |
20 */ | |
1 | 21 |
26029 | 22 #ifndef MPLAYER_GETCH2_H |
23 #define MPLAYER_GETCH2_H | |
25553
6ac1ece1f9fe
Add multiple inclusion guards to all header files that lack them.
diego
parents:
24129
diff
changeset
|
24 |
1 | 25 /* Screen size. Initialized by load_termcap() and get_screen_size() */ |
26 extern int screen_width; | |
27 extern int screen_height; | |
28 | |
17240
11459d1ff17c
Use termcap "erase to end of line" character code instead of using spaces
ods15
parents:
9380
diff
changeset
|
29 /* 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
|
30 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
|
31 |
1 | 32 /* Get screen-size using IOCTL call. */ |
28051 | 33 void get_screen_size(void); |
1 | 34 |
35 /* Load key definitions from the TERMCAP database. 'termtype' can be NULL */ | |
28051 | 36 int load_termcap(char *termtype); |
1 | 37 |
38 /* Enable and disable STDIN line-buffering */ | |
28051 | 39 void getch2_enable(void); |
40 void getch2_disable(void); | |
1 | 41 |
42 /* Read a character or a special key code (see keycodes.h) */ | |
28051 | 43 void getch2(void); |
1 | 44 |
26016 | 45 /* slave cmd function for Windows and OS/2 */ |
28051 | 46 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
|
47 |
26016 | 48 #if defined(__MINGW32__) || defined(__OS2__) |
49 #define USE_SELECT 0 | |
50 #define MP_INPUT_SLAVE_CMD_FUNC mp_input_slave_cmd_func | |
51 #else | |
52 #define USE_SELECT 1 | |
53 #define MP_INPUT_SLAVE_CMD_FUNC NULL | |
54 #endif | |
55 | |
26029 | 56 #endif /* MPLAYER_GETCH2_H */ |