annotate osdep/getch2.h @ 26657:6c9312893275

Add paragraph about homepage translation.
author diego
date Thu, 08 May 2008 00:14:18 +0000
parents 4129c8cfa742
children 9e739bdb049c
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
1 /* GyS-TermIO v2.0 (for GySmail v3) (C) 1999 A'rpi/ESP-team */
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
2 /* a very small replacement of ncurses library */
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
3
26029
4129c8cfa742 Add MPLAYER_ prefix to multiple inclusion guards.
diego
parents: 26016
diff changeset
4 #ifndef MPLAYER_GETCH2_H
4129c8cfa742 Add MPLAYER_ prefix to multiple inclusion guards.
diego
parents: 26016
diff changeset
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
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
7 /* Screen size. Initialized by load_termcap() and get_screen_size() */
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
8 extern int screen_width;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
9 extern int screen_height;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
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
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
14 /* Get screen-size using IOCTL call. */
17566
f580a7755ac5 Patch by Stefan Huehner / stefan % huehner ! org \
rathann
parents: 17240
diff changeset
15 extern void get_screen_size(void);
1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
16
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
17 /* Load key definitions from the TERMCAP database. 'termtype' can be NULL */
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
18 extern int load_termcap(char *termtype);
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
19
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
20 /* Enable and disable STDIN line-buffering */
17566
f580a7755ac5 Patch by Stefan Huehner / stefan % huehner ! org \
rathann
parents: 17240
diff changeset
21 extern void getch2_enable(void);
f580a7755ac5 Patch by Stefan Huehner / stefan % huehner ! org \
rathann
parents: 17240
diff changeset
22 extern void getch2_disable(void);
1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
23
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
24 /* Read a character or a special key code (see keycodes.h) */
24129
50e1e79056b6 Make terminal input work more like VO key input
uau
parents: 19808
diff changeset
25 extern void getch2(void);
1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
26
26016
528bdf17dd8a OS/2 getch2() support
diego
parents: 26015
diff changeset
27 /* slave cmd function for Windows and OS/2 */
26015
f222f84f2072 Rename mp_input_win32_slave_cmd_func to mp_input_slave_cmd_func.
diego
parents: 26007
diff changeset
28 extern 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
528bdf17dd8a OS/2 getch2() support
diego
parents: 26015
diff changeset
30 #if defined(__MINGW32__) || defined(__OS2__)
528bdf17dd8a OS/2 getch2() support
diego
parents: 26015
diff changeset
31 #define USE_SELECT 0
528bdf17dd8a OS/2 getch2() support
diego
parents: 26015
diff changeset
32 #define MP_INPUT_SLAVE_CMD_FUNC mp_input_slave_cmd_func
528bdf17dd8a OS/2 getch2() support
diego
parents: 26015
diff changeset
33 #else
528bdf17dd8a OS/2 getch2() support
diego
parents: 26015
diff changeset
34 #define USE_SELECT 1
528bdf17dd8a OS/2 getch2() support
diego
parents: 26015
diff changeset
35 #define MP_INPUT_SLAVE_CMD_FUNC NULL
528bdf17dd8a OS/2 getch2() support
diego
parents: 26015
diff changeset
36 #endif
528bdf17dd8a OS/2 getch2() support
diego
parents: 26015
diff changeset
37
26029
4129c8cfa742 Add MPLAYER_ prefix to multiple inclusion guards.
diego
parents: 26016
diff changeset
38 #endif /* MPLAYER_GETCH2_H */