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