Mercurial > mplayer.hg
annotate osdep/getch2.h @ 25733:54adb08b36f7
syncet to r25663
author | ptt |
---|---|
date | Tue, 15 Jan 2008 22:41:15 +0000 |
parents | 6ac1ece1f9fe |
children | 429c8f64b810 |
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 | |
25553
6ac1ece1f9fe
Add multiple inclusion guards to all header files that lack them.
diego
parents:
24129
diff
changeset
|
4 #ifndef GETCH2_H |
6ac1ece1f9fe
Add multiple inclusion guards to all header files that lack them.
diego
parents:
24129
diff
changeset
|
5 #define GETCH2_H |
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. */ |
17566
f580a7755ac5
Patch by Stefan Huehner / stefan % huehner ! org \
rathann
parents:
17240
diff
changeset
|
15 extern void get_screen_size(void); |
1 | 16 |
17 /* Load key definitions from the TERMCAP database. 'termtype' can be NULL */ | |
18 extern int load_termcap(char *termtype); | |
19 | |
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 | 23 |
24 /* Read a character or a special key code (see keycodes.h) */ | |
24129 | 25 extern void getch2(void); |
1 | 26 |
19808
5385740067a1
* remove extern definitions of functions in .c files
attila
parents:
17566
diff
changeset
|
27 #ifdef __MINGW32__ |
5385740067a1
* remove extern definitions of functions in .c files
attila
parents:
17566
diff
changeset
|
28 extern int mp_input_win32_slave_cmd_func(int fd,char* dest,int size); |
5385740067a1
* remove extern definitions of functions in .c files
attila
parents:
17566
diff
changeset
|
29 #endif |
25553
6ac1ece1f9fe
Add multiple inclusion guards to all header files that lack them.
diego
parents:
24129
diff
changeset
|
30 |
6ac1ece1f9fe
Add multiple inclusion guards to all header files that lack them.
diego
parents:
24129
diff
changeset
|
31 #endif /* GETCH2_H */ |