1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
/* Public Domain Curses */
#include "pdcsdl.h"
void PDC_beep(void)
{
PDC_LOG(("PDC_beep() - called\n"));
}
void PDC_napms(int ms)
{
PDC_LOG(("PDC_napms() - called: ms=%d\n", ms));
PDC_update_rects();
SDL_Delay(ms);
}
const char *PDC_sysname(void)
{
return "SDL2";
}
PDCEX PDC_version_info PDC_version = { PDC_PORT_SDL2,
PDC_VER_MAJOR, PDC_VER_MINOR, PDC_VER_CHANGE,
sizeof( chtype),
/* note that thus far, 'wide' and 'UTF8' versions exist */
/* only for SDL2, X11, Win32, and Win32a; elsewhere, */
/* these will be FALSE */
#ifdef PDC_WIDE
TRUE,
#else
FALSE,
#endif
#ifdef PDC_FORCE_UTF8
TRUE,
#else
FALSE,
#endif
};