curses 1.4.5 → 1.4.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (249) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/push_gem.yml +48 -0
  3. data/History.md +3 -0
  4. data/curses.gemspec +1 -1
  5. metadata +8 -247
  6. data/vendor/PDCurses/.gitignore +0 -47
  7. data/vendor/PDCurses/.travis.yml +0 -49
  8. data/vendor/PDCurses/CMakeLists.txt +0 -68
  9. data/vendor/PDCurses/HISTORY.md +0 -2036
  10. data/vendor/PDCurses/IMPLEMNT.md +0 -327
  11. data/vendor/PDCurses/Makefile +0 -27
  12. data/vendor/PDCurses/README.md +0 -77
  13. data/vendor/PDCurses/acs_defs.h +0 -265
  14. data/vendor/PDCurses/appveyor.yml +0 -218
  15. data/vendor/PDCurses/cmake/README.md +0 -71
  16. data/vendor/PDCurses/cmake/build_dependencies.cmake +0 -178
  17. data/vendor/PDCurses/cmake/build_options.cmake +0 -25
  18. data/vendor/PDCurses/cmake/dll_version.cmake +0 -26
  19. data/vendor/PDCurses/cmake/gen_config_header.cmake +0 -43
  20. data/vendor/PDCurses/cmake/get_version.cmake +0 -17
  21. data/vendor/PDCurses/cmake/make_uninstall.cmake +0 -19
  22. data/vendor/PDCurses/cmake/project_common.cmake +0 -121
  23. data/vendor/PDCurses/cmake/resource.in.cmake +0 -52
  24. data/vendor/PDCurses/cmake/sdl2_ttf/CMakeLists.txt +0 -83
  25. data/vendor/PDCurses/cmake/target_arch.cmake +0 -36
  26. data/vendor/PDCurses/cmake/version.in.cmake +0 -73
  27. data/vendor/PDCurses/cmake/watcom_open_dos16_toolchain.cmake +0 -96
  28. data/vendor/PDCurses/cmake/watcom_open_dos32_toolchain.cmake +0 -106
  29. data/vendor/PDCurses/cmake/watcom_open_os2v2_toolchain.cmake +0 -105
  30. data/vendor/PDCurses/curses.h +0 -1846
  31. data/vendor/PDCurses/curspriv.h +0 -134
  32. data/vendor/PDCurses/demos/README.md +0 -25
  33. data/vendor/PDCurses/demos/firework.c +0 -144
  34. data/vendor/PDCurses/demos/newtest.c +0 -581
  35. data/vendor/PDCurses/demos/ozdemo.c +0 -447
  36. data/vendor/PDCurses/demos/ptest.c +0 -283
  37. data/vendor/PDCurses/demos/rain.c +0 -157
  38. data/vendor/PDCurses/demos/testcurs.c +0 -1607
  39. data/vendor/PDCurses/demos/tui.c +0 -1048
  40. data/vendor/PDCurses/demos/tui.h +0 -65
  41. data/vendor/PDCurses/demos/tuidemo.c +0 -233
  42. data/vendor/PDCurses/demos/version.c +0 -61
  43. data/vendor/PDCurses/demos/worm.c +0 -432
  44. data/vendor/PDCurses/demos/xmas.c +0 -955
  45. data/vendor/PDCurses/dos/CMakeLists.txt +0 -47
  46. data/vendor/PDCurses/dos/Makefile +0 -105
  47. data/vendor/PDCurses/dos/Makefile.bcc +0 -83
  48. data/vendor/PDCurses/dos/Makefile.dmc +0 -257
  49. data/vendor/PDCurses/dos/Makefile.msc +0 -113
  50. data/vendor/PDCurses/dos/Makefile.wcc +0 -107
  51. data/vendor/PDCurses/dos/README.md +0 -51
  52. data/vendor/PDCurses/dos/bccdos.lrf +0 -9
  53. data/vendor/PDCurses/dos/mscdos.lrf +0 -50
  54. data/vendor/PDCurses/dos/pdcclip.c +0 -132
  55. data/vendor/PDCurses/dos/pdcdisp.c +0 -135
  56. data/vendor/PDCurses/dos/pdcdos.h +0 -194
  57. data/vendor/PDCurses/dos/pdcgetsc.c +0 -98
  58. data/vendor/PDCurses/dos/pdckbd.c +0 -513
  59. data/vendor/PDCurses/dos/pdcscrn.c +0 -785
  60. data/vendor/PDCurses/dos/pdcsetsc.c +0 -101
  61. data/vendor/PDCurses/dos/pdcutil.c +0 -212
  62. data/vendor/PDCurses/libobjs.mif +0 -26
  63. data/vendor/PDCurses/makedist.mif +0 -20
  64. data/vendor/PDCurses/man/Makefile +0 -37
  65. data/vendor/PDCurses/man/README.md +0 -21
  66. data/vendor/PDCurses/man/intro.md +0 -361
  67. data/vendor/PDCurses/man/manext.c +0 -119
  68. data/vendor/PDCurses/man/sdl.md +0 -152
  69. data/vendor/PDCurses/man/sdl2.md +0 -58
  70. data/vendor/PDCurses/man/x11.md +0 -407
  71. data/vendor/PDCurses/ncurses/CMakeLists.txt +0 -66
  72. data/vendor/PDCurses/ncurses/README.md +0 -26
  73. data/vendor/PDCurses/ncurses/makefile +0 -29
  74. data/vendor/PDCurses/os2/CMakeLists.txt +0 -41
  75. data/vendor/PDCurses/os2/Makefile +0 -132
  76. data/vendor/PDCurses/os2/Makefile.bcc +0 -90
  77. data/vendor/PDCurses/os2/Makefile.wcc +0 -43
  78. data/vendor/PDCurses/os2/README.md +0 -43
  79. data/vendor/PDCurses/os2/iccos2.lrf +0 -50
  80. data/vendor/PDCurses/os2/iccos2.mak +0 -256
  81. data/vendor/PDCurses/os2/pdcclip.c +0 -188
  82. data/vendor/PDCurses/os2/pdcdisp.c +0 -93
  83. data/vendor/PDCurses/os2/pdcgetsc.c +0 -89
  84. data/vendor/PDCurses/os2/pdckbd.c +0 -521
  85. data/vendor/PDCurses/os2/pdcos2.h +0 -55
  86. data/vendor/PDCurses/os2/pdcscrn.c +0 -449
  87. data/vendor/PDCurses/os2/pdcsetsc.c +0 -112
  88. data/vendor/PDCurses/os2/pdcutil.c +0 -52
  89. data/vendor/PDCurses/panel.h +0 -56
  90. data/vendor/PDCurses/pdcurses/README.md +0 -25
  91. data/vendor/PDCurses/pdcurses/addch.c +0 -693
  92. data/vendor/PDCurses/pdcurses/addchstr.c +0 -245
  93. data/vendor/PDCurses/pdcurses/addstr.c +0 -240
  94. data/vendor/PDCurses/pdcurses/attr.c +0 -359
  95. data/vendor/PDCurses/pdcurses/beep.c +0 -68
  96. data/vendor/PDCurses/pdcurses/bkgd.c +0 -223
  97. data/vendor/PDCurses/pdcurses/border.c +0 -411
  98. data/vendor/PDCurses/pdcurses/clear.c +0 -159
  99. data/vendor/PDCurses/pdcurses/color.c +0 -298
  100. data/vendor/PDCurses/pdcurses/debug.c +0 -109
  101. data/vendor/PDCurses/pdcurses/delch.c +0 -96
  102. data/vendor/PDCurses/pdcurses/deleteln.c +0 -211
  103. data/vendor/PDCurses/pdcurses/deprec.c +0 -27
  104. data/vendor/PDCurses/pdcurses/getch.c +0 -417
  105. data/vendor/PDCurses/pdcurses/getstr.c +0 -474
  106. data/vendor/PDCurses/pdcurses/getyx.c +0 -139
  107. data/vendor/PDCurses/pdcurses/inch.c +0 -127
  108. data/vendor/PDCurses/pdcurses/inchstr.c +0 -214
  109. data/vendor/PDCurses/pdcurses/initscr.c +0 -367
  110. data/vendor/PDCurses/pdcurses/inopts.c +0 -324
  111. data/vendor/PDCurses/pdcurses/insch.c +0 -271
  112. data/vendor/PDCurses/pdcurses/insstr.c +0 -264
  113. data/vendor/PDCurses/pdcurses/instr.c +0 -246
  114. data/vendor/PDCurses/pdcurses/kernel.c +0 -259
  115. data/vendor/PDCurses/pdcurses/keyname.c +0 -157
  116. data/vendor/PDCurses/pdcurses/mouse.c +0 -438
  117. data/vendor/PDCurses/pdcurses/move.c +0 -57
  118. data/vendor/PDCurses/pdcurses/outopts.c +0 -159
  119. data/vendor/PDCurses/pdcurses/overlay.c +0 -214
  120. data/vendor/PDCurses/pdcurses/pad.c +0 -260
  121. data/vendor/PDCurses/pdcurses/panel.c +0 -633
  122. data/vendor/PDCurses/pdcurses/printw.c +0 -126
  123. data/vendor/PDCurses/pdcurses/refresh.c +0 -279
  124. data/vendor/PDCurses/pdcurses/scanw.c +0 -578
  125. data/vendor/PDCurses/pdcurses/scr_dump.c +0 -213
  126. data/vendor/PDCurses/pdcurses/scroll.c +0 -101
  127. data/vendor/PDCurses/pdcurses/slk.c +0 -591
  128. data/vendor/PDCurses/pdcurses/termattr.c +0 -182
  129. data/vendor/PDCurses/pdcurses/terminfo.c +0 -217
  130. data/vendor/PDCurses/pdcurses/touch.c +0 -163
  131. data/vendor/PDCurses/pdcurses/util.c +0 -312
  132. data/vendor/PDCurses/pdcurses/window.c +0 -569
  133. data/vendor/PDCurses/sdl1/Makefile +0 -129
  134. data/vendor/PDCurses/sdl1/Makefile.mng +0 -110
  135. data/vendor/PDCurses/sdl1/README.md +0 -31
  136. data/vendor/PDCurses/sdl1/deffont.h +0 -385
  137. data/vendor/PDCurses/sdl1/deficon.h +0 -23
  138. data/vendor/PDCurses/sdl1/pdcclip.c +0 -131
  139. data/vendor/PDCurses/sdl1/pdcdisp.c +0 -373
  140. data/vendor/PDCurses/sdl1/pdcgetsc.c +0 -30
  141. data/vendor/PDCurses/sdl1/pdckbd.c +0 -405
  142. data/vendor/PDCurses/sdl1/pdcscrn.c +0 -414
  143. data/vendor/PDCurses/sdl1/pdcsdl.h +0 -31
  144. data/vendor/PDCurses/sdl1/pdcsetsc.c +0 -64
  145. data/vendor/PDCurses/sdl1/pdcutil.c +0 -40
  146. data/vendor/PDCurses/sdl1/sdltest.c +0 -79
  147. data/vendor/PDCurses/sdl2/CMakeLists.txt +0 -76
  148. data/vendor/PDCurses/sdl2/Makefile +0 -135
  149. data/vendor/PDCurses/sdl2/Makefile.vc +0 -164
  150. data/vendor/PDCurses/sdl2/README.md +0 -34
  151. data/vendor/PDCurses/sdl2/deffont.h +0 -385
  152. data/vendor/PDCurses/sdl2/deficon.h +0 -23
  153. data/vendor/PDCurses/sdl2/pdcclip.c +0 -93
  154. data/vendor/PDCurses/sdl2/pdcdisp.c +0 -534
  155. data/vendor/PDCurses/sdl2/pdcgetsc.c +0 -30
  156. data/vendor/PDCurses/sdl2/pdckbd.c +0 -480
  157. data/vendor/PDCurses/sdl2/pdcscrn.c +0 -443
  158. data/vendor/PDCurses/sdl2/pdcsdl.h +0 -33
  159. data/vendor/PDCurses/sdl2/pdcsetsc.c +0 -67
  160. data/vendor/PDCurses/sdl2/pdcutil.c +0 -39
  161. data/vendor/PDCurses/sdl2/sdltest.c +0 -81
  162. data/vendor/PDCurses/term.h +0 -48
  163. data/vendor/PDCurses/version.mif +0 -7
  164. data/vendor/PDCurses/vt/CMakeLists.txt +0 -28
  165. data/vendor/PDCurses/vt/Makefile +0 -135
  166. data/vendor/PDCurses/vt/Makefile.bcc +0 -111
  167. data/vendor/PDCurses/vt/Makefile.dmc +0 -258
  168. data/vendor/PDCurses/vt/Makefile.vc +0 -144
  169. data/vendor/PDCurses/vt/Makefile.wcc +0 -107
  170. data/vendor/PDCurses/vt/README.md +0 -64
  171. data/vendor/PDCurses/vt/pdcclip.c +0 -20
  172. data/vendor/PDCurses/vt/pdcdisp.c +0 -284
  173. data/vendor/PDCurses/vt/pdcgetsc.c +0 -27
  174. data/vendor/PDCurses/vt/pdckbd.c +0 -394
  175. data/vendor/PDCurses/vt/pdcscrn.c +0 -434
  176. data/vendor/PDCurses/vt/pdcsetsc.c +0 -45
  177. data/vendor/PDCurses/vt/pdcutil.c +0 -43
  178. data/vendor/PDCurses/vt/pdcvt.h +0 -16
  179. data/vendor/PDCurses/watcom.mif +0 -68
  180. data/vendor/PDCurses/wincon/CMakeLists.txt +0 -27
  181. data/vendor/PDCurses/wincon/Makefile.bcc +0 -88
  182. data/vendor/PDCurses/wincon/Makefile.dmc +0 -256
  183. data/vendor/PDCurses/wincon/Makefile.lcc +0 -273
  184. data/vendor/PDCurses/wincon/Makefile.mng +0 -176
  185. data/vendor/PDCurses/wincon/Makefile.vc +0 -144
  186. data/vendor/PDCurses/wincon/Makefile.wcc +0 -51
  187. data/vendor/PDCurses/wincon/README.md +0 -85
  188. data/vendor/PDCurses/wincon/pdcclip.c +0 -174
  189. data/vendor/PDCurses/wincon/pdcdisp.c +0 -143
  190. data/vendor/PDCurses/wincon/pdcgetsc.c +0 -55
  191. data/vendor/PDCurses/wincon/pdckbd.c +0 -786
  192. data/vendor/PDCurses/wincon/pdcscrn.c +0 -717
  193. data/vendor/PDCurses/wincon/pdcsetsc.c +0 -91
  194. data/vendor/PDCurses/wincon/pdcurses.ico +0 -0
  195. data/vendor/PDCurses/wincon/pdcurses.rc +0 -28
  196. data/vendor/PDCurses/wincon/pdcutil.c +0 -41
  197. data/vendor/PDCurses/wincon/pdcwin.h +0 -31
  198. data/vendor/PDCurses/wingui/CMakeLists.txt +0 -27
  199. data/vendor/PDCurses/wingui/Makefile.bcc +0 -85
  200. data/vendor/PDCurses/wingui/Makefile.dmc +0 -259
  201. data/vendor/PDCurses/wingui/Makefile.lcc +0 -273
  202. data/vendor/PDCurses/wingui/Makefile.mng +0 -171
  203. data/vendor/PDCurses/wingui/Makefile.vc +0 -144
  204. data/vendor/PDCurses/wingui/Makefile.wcc +0 -51
  205. data/vendor/PDCurses/wingui/README.md +0 -93
  206. data/vendor/PDCurses/wingui/pdcclip.c +0 -174
  207. data/vendor/PDCurses/wingui/pdcdisp.c +0 -718
  208. data/vendor/PDCurses/wingui/pdcgetsc.c +0 -30
  209. data/vendor/PDCurses/wingui/pdckbd.c +0 -143
  210. data/vendor/PDCurses/wingui/pdcscrn.c +0 -2797
  211. data/vendor/PDCurses/wingui/pdcsetsc.c +0 -89
  212. data/vendor/PDCurses/wingui/pdcurses.ico +0 -0
  213. data/vendor/PDCurses/wingui/pdcurses.rc +0 -28
  214. data/vendor/PDCurses/wingui/pdcutil.c +0 -61
  215. data/vendor/PDCurses/wingui/pdcwin.h +0 -122
  216. data/vendor/PDCurses/x11/Makefile.in +0 -754
  217. data/vendor/PDCurses/x11/PDCurses.spec +0 -82
  218. data/vendor/PDCurses/x11/README.md +0 -62
  219. data/vendor/PDCurses/x11/ScrollBox.c +0 -319
  220. data/vendor/PDCurses/x11/ScrollBox.h +0 -51
  221. data/vendor/PDCurses/x11/ScrollBoxP.h +0 -70
  222. data/vendor/PDCurses/x11/aclocal.m4 +0 -994
  223. data/vendor/PDCurses/x11/big_icon.xbm +0 -46
  224. data/vendor/PDCurses/x11/compose.h +0 -201
  225. data/vendor/PDCurses/x11/config.guess +0 -1500
  226. data/vendor/PDCurses/x11/config.h.in +0 -100
  227. data/vendor/PDCurses/x11/config.sub +0 -1616
  228. data/vendor/PDCurses/x11/configure +0 -6700
  229. data/vendor/PDCurses/x11/configure.ac +0 -295
  230. data/vendor/PDCurses/x11/debian/changelog +0 -6
  231. data/vendor/PDCurses/x11/debian/compat +0 -1
  232. data/vendor/PDCurses/x11/debian/control +0 -11
  233. data/vendor/PDCurses/x11/debian/copyright +0 -27
  234. data/vendor/PDCurses/x11/debian/rules +0 -98
  235. data/vendor/PDCurses/x11/install-sh +0 -253
  236. data/vendor/PDCurses/x11/little_icon.xbm +0 -14
  237. data/vendor/PDCurses/x11/ncurses_cfg.h +0 -45
  238. data/vendor/PDCurses/x11/pdcclip.c +0 -173
  239. data/vendor/PDCurses/x11/pdcdisp.c +0 -85
  240. data/vendor/PDCurses/x11/pdcgetsc.c +0 -28
  241. data/vendor/PDCurses/x11/pdckbd.c +0 -104
  242. data/vendor/PDCurses/x11/pdcscrn.c +0 -258
  243. data/vendor/PDCurses/x11/pdcsetsc.c +0 -95
  244. data/vendor/PDCurses/x11/pdcutil.c +0 -52
  245. data/vendor/PDCurses/x11/pdcx11.c +0 -316
  246. data/vendor/PDCurses/x11/pdcx11.h +0 -191
  247. data/vendor/PDCurses/x11/sb.c +0 -155
  248. data/vendor/PDCurses/x11/x11.c +0 -3686
  249. data/vendor/PDCurses/x11/xcurses-config.in +0 -81
@@ -1,89 +0,0 @@
1
- /* Public Domain Curses */
2
-
3
- #include "pdcwin.h"
4
-
5
- /*man-start**************************************************************
6
-
7
- Name: pdcsetsc
8
-
9
- Synopsis:
10
- int PDC_set_blink(bool blinkon);
11
- void PDC_set_title(const char *title);
12
-
13
- Description:
14
- PDC_set_blink() toggles whether the A_BLINK attribute sets an
15
- actual blink mode (TRUE), or sets the background color to high
16
- intensity (FALSE). The default is platform-dependent (FALSE in
17
- most cases). It returns OK if it could set the state to match
18
- the given parameter, ERR otherwise. Current platforms also
19
- adjust the value of COLORS according to this function -- 16 for
20
- FALSE, and 8 for TRUE.
21
-
22
- PDC_set_title() sets the title of the window in which the curses
23
- program is running. This function may not do anything on some
24
- platforms. (Currently it only works in Win32 and X11.)
25
-
26
- Portability X/Open BSD SYS V
27
- PDC_set_blink - - -
28
- PDC_set_title - - -
29
-
30
- **man-end****************************************************************/
31
-
32
- /* Note that the following is a line-for-line */
33
- /* copy of the SDL version of this function. */
34
- int PDC_curs_set(int visibility)
35
- {
36
- int ret_vis;
37
-
38
- PDC_LOG(("PDC_curs_set() - called: visibility=%d\n", visibility));
39
-
40
- ret_vis = SP->visibility;
41
-
42
- SP->visibility = visibility;
43
-
44
- PDC_gotoyx(SP->cursrow, SP->curscol);
45
-
46
- return ret_vis;
47
- }
48
-
49
- void PDC_set_title(const char *title)
50
- {
51
- extern HWND PDC_hWnd;
52
- #ifdef PDC_WIDE
53
- wchar_t wtitle[512];
54
- #endif
55
- PDC_LOG(("PDC_set_title() - called:<%s>\n", title));
56
-
57
- #ifdef PDC_WIDE
58
- PDC_mbstowcs(wtitle, title, 511);
59
- SetWindowTextW( PDC_hWnd, wtitle);
60
- #else
61
- SetWindowTextA( PDC_hWnd, title);
62
- #endif
63
- }
64
-
65
- /* If PDC_really_blinking is TRUE, then text with the A_BLINK */
66
- /* attribute will actually blink. Otherwise, such text will */
67
- /* be shown with higher color intensity (the R, G, and B values */
68
- /* are averaged with pure white). See pdcdisp.c for details of */
69
- /* how this is done. */
70
- /* Unlike on other PDCurses platforms, this doesn't require */
71
- /* decreasing the number of colors by half. Also, the choice */
72
- /* indicated by 'blinkon' will actually be respected, so OK is */
73
- /* always returned (most platforms don't actually support */
74
- /* blinking). */
75
- /* The default behavior is to not show A_BLINK text as */
76
- /* blinking, i.e., PDC_really_blinking = FALSE. Blinking text */
77
- /* can be pretty annoying to some people. You should probably */
78
- /* call PDC_set_blink( TRUE) only if there is something to which */
79
- /* the user _must_ pay attention; say, "the nuclear reactor */
80
- /* is about to melt down". Otherwise, the bolder, brighter */
81
- /* text should be attention-getting enough. */
82
-
83
- int PDC_really_blinking = FALSE;
84
-
85
- int PDC_set_blink(bool blinkon)
86
- {
87
- PDC_really_blinking = blinkon;
88
- return OK;
89
- }
Binary file
@@ -1,28 +0,0 @@
1
- #include "winver.h"
2
-
3
- 1 VERSIONINFO
4
- FILEVERSION 4,0,2,0
5
- PRODUCTVERSION 4,0,2,0
6
- FILEFLAGSMASK 0x3fL
7
- FILEFLAGS 0x0L
8
- FILEOS VOS_UNKNOWN
9
- FILETYPE VFT_DLL
10
- FILESUBTYPE 0x0L
11
- BEGIN
12
- BLOCK "StringFileInfo"
13
- BEGIN
14
- BLOCK "040904b0"
15
- BEGIN
16
- VALUE "Maintainer", "William McBrine\0"
17
- VALUE "FileDescription", "Public Domain Curses\0"
18
- VALUE "FileVersion", "4.0.2\0"
19
- VALUE "InternalName", "PDCurses\0"
20
- VALUE "LegalCopyright", "Public Domain\0"
21
- VALUE "OriginalFilename", "PDCURSES.DLL\0"
22
- VALUE "ProductName", "Public Domain Curses Library\0"
23
- VALUE "ProductVersion", "4.0.2\0"
24
- END
25
- END
26
- END
27
-
28
- 1 ICON DISCARDABLE "PDCURSES.ico"
@@ -1,61 +0,0 @@
1
- /* Public Domain Curses */
2
-
3
- #include "pdcwin.h"
4
-
5
- void PDC_beep(void)
6
- {
7
- PDC_LOG(("PDC_beep() - called\n"));
8
-
9
- /* MessageBeep(MB_OK); */
10
- MessageBeep(0XFFFFFFFF);
11
- }
12
-
13
- void PDC_napms(int ms) /* 'ms' = milli, _not_ microseconds! */
14
- {
15
- /* RR: keep GUI window responsive while PDCurses sleeps */
16
- MSG msg;
17
- DWORD curr_ms = GetTickCount( );
18
- const DWORD milliseconds_sleep_limit = ms + curr_ms;
19
- extern bool PDC_bDone;
20
-
21
- PDC_LOG(("PDC_napms() - called: ms=%d\n", ms));
22
-
23
- /* Pump all pending messages from WIN32 to the window handler */
24
- while( !PDC_bDone && curr_ms < milliseconds_sleep_limit )
25
- {
26
- const DWORD max_sleep_ms = 50; /* check msgs 20 times/second */
27
- DWORD sleep_millisecs;
28
-
29
- while( PeekMessage(&msg, NULL, 0, 0, PM_REMOVE) )
30
- {
31
- TranslateMessage(&msg);
32
- DispatchMessage(&msg);
33
- }
34
- curr_ms = GetTickCount( );
35
- sleep_millisecs = milliseconds_sleep_limit - curr_ms;
36
- if( sleep_millisecs > max_sleep_ms)
37
- sleep_millisecs = max_sleep_ms;
38
- Sleep( sleep_millisecs);
39
- curr_ms += sleep_millisecs;
40
- }
41
- }
42
-
43
- const char *PDC_sysname(void)
44
- {
45
- return "WinGUI";
46
- }
47
-
48
- PDC_version_info PDC_version = { PDC_PORT_WINGUI,
49
- PDC_VER_MAJOR, PDC_VER_MINOR, PDC_VER_CHANGE,
50
- sizeof( chtype),
51
- #ifdef PDC_WIDE
52
- TRUE,
53
- #else
54
- FALSE,
55
- #endif
56
- #ifdef PDC_FORCE_UTF8
57
- TRUE,
58
- #else
59
- FALSE,
60
- #endif
61
- };
@@ -1,122 +0,0 @@
1
- /* Public Domain Curses */
2
-
3
- /* $Id: pdcwin.h,v 1.6 2008/07/13 06:36:32 wmcbrine Exp $ */
4
-
5
- #ifdef PDC_WIDE
6
- # define UNICODE
7
- # define _UNICODE
8
- #endif
9
-
10
- #include <windows.h>
11
-
12
- #if defined( GS_8BIT_INDICES) && defined( PDC_WIDE)
13
- /* We only need the 'fallback font' for the wide-char version, */
14
- /* and it'll only work in Win2000 or later (earlier versions */
15
- /* lack the necessary GetFontUnicodeRanges() function.) Comment */
16
- /* out the following line if you're dealing with a really old */
17
- /* system, or just don't want to use a fallback font. */
18
- #define USE_FALLBACK_FONT
19
- #endif
20
-
21
- /* Windows.h will #define MOUSE_MOVED to 0x1, which is what the
22
- Windows API expects. In Curses, MOUSE_MOVED is a macro indicating
23
- whether the mouse has moved, so we'd get a compiler warning that
24
- we're re-defining MOUSE_MOVED. That warning may be a Good Thing in
25
- your software, letting you know: "Be careful; in a Curses program,
26
- MOUSE_MOVED won't have the same meaning it does in a 'real' Windows
27
- program."
28
-
29
- But in building WinGUI itself, we're expecting the Curses
30
- meaning for MOUSE_MOVED, and the compiler warning would just be
31
- a nuisance. So we'll #undefine MOUSE_MOVED before getting to the
32
- Curses definition : */
33
-
34
- #undef MOUSE_MOVED
35
- #include <curspriv.h>
36
-
37
- extern int PDC_get_buffer_rows(void);
38
-
39
- /* The following probably ought to go into 'curses.h' at some point. */
40
- /* Or at least, not be here; this is a temporary place for them. */
41
-
42
- /* WinGUI has some drastically extended cursor possibilities. The
43
- following #defines can be used with curs_set(). For all other flavors
44
- of PDCurses, only the invisible, "normal", and "intense" cursor
45
- states will be recognized. In Win32, caret, half-block, central
46
- block, cross, and outlined block cursors are available.
47
-
48
- By default, all such cursors will blink. However, in WinGUI,
49
- the input value to curs_set() is treated as a two-byte value, with
50
- the cursor blinking between those two states. For example,
51
- curs_set( 0x0102) would blink between a "normal" (underline) cursor and
52
- an "intense" (full-block) cursor. One can see that this behavior is
53
- backward-compatible; for example, curs_set( 1) would blink between a
54
- "normal" underline cursor and an invisible cursor. (But curs_set( 0x0101)
55
- would result in a non-blinking underline cursor.) Note that one can use
56
- the PDC_CURSOR macro for this, as in...
57
-
58
- curs_set( PDC_CURSOR( PDC_CURSOR_OUTLINE, PDC_CURSOR_INTENSE)); */
59
-
60
- #define PDC_CURSOR_INVISIBLE 0x00
61
- #define PDC_CURSOR_NORMAL 0x01
62
- #define PDC_CURSOR_INTENSE 0x02
63
- #define PDC_CURSOR_OUTLINE 0x03
64
- #define PDC_CURSOR_CARET 0x04
65
- #define PDC_CURSOR_HALF_BLOCK 0x05
66
- #define PDC_CURSOR_CENTRAL_BLOCK 0x06
67
- #define PDC_CURSOR_CROSS 0x07
68
- #define PDC_CURSOR_OUTLINE_BLOCK 0x08
69
-
70
- #define PDC_CURSOR( A, B) ((A)<<8 | (B))
71
- #define PDC_CURSOR_IS_BLINKING \
72
- ((SP->visibility >> 8) != (SP->visibility & 0xff))
73
-
74
- /* With 64-bit chtypes, we're allowing 20 bits for the character
75
- (thus Unicode values up to 0xffffff) plus one bit to indicate the
76
- alternate character set. With 32-bit chtypes, we don't have so
77
- many bits to play with and limit ourselves to 16-bit characters
78
- (i.e., Unicode past 0xffff can't be shown), plus that one bit
79
- for alternate chars. With 16-bit chtypes, there are only eight
80
- bits available to the character. PDC_REAL_ATTR_SHIFT gives the
81
- number of low bits devoted to storing characters. */
82
-
83
- # if(CHTYPE_LONG >= 2) /* 64-bit chtypes */
84
- # define PDC_REAL_ATTR_SHIFT 21
85
- # else
86
- #ifdef CHTYPE_LONG /* 32-bit chtypes */
87
- # define PDC_REAL_ATTR_SHIFT 17
88
- #else /* 16-bit chtypes */
89
- # define PDC_REAL_ATTR_SHIFT 8
90
- #endif
91
- #endif
92
-
93
- /* The PDC_set_function_key() function allows one to set a 'shut down'
94
- key, and reassign hotkeys used for pasting from the clipboard and
95
- enlarging and decreasing the font size, and for using the font selection
96
- dialog. For example, calling
97
-
98
- PDC_set_function_key( FUNCTION_KEY_SHUT_DOWN, ALT_Q);
99
-
100
- would reset the library so that, if the user clicks on the 'close' box,
101
- Alt-Q would be added to the key queue. This would give the app the
102
- opportunity to shut things down (and perhaps ask "are you sure", and/or
103
- "save changes or discard or cancel"), rather than just having the
104
- window close (the default behavior).
105
-
106
- Also, by default, Ctrl-V "pastes" the clipboard into the key queue,
107
- and Ctrl-Equals brings up the font selection dialog. But one could
108
- call, for example,
109
-
110
- PDC_set_function_key( FUNCTION_KEY_PASTE, CTL_Z);
111
-
112
- to reset the "paste" key to be Ctrl-Z. Or one could call
113
-
114
- PDC_set_function_key( FUNCTION_KEY_PASTE, 0);
115
-
116
- to shut off that function. (It would still be accessible from the menu.)
117
-
118
- Thus far, this is a WinGUI-flavor specific function. But it could, and
119
- in my opinion should, be made available in the SDL and XCurses flavors too.
120
-
121
- The return value is the key previously used for that function.
122
- */