curses 1.3.0 → 1.4.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (256) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/macos.yml +19 -0
  3. data/.github/workflows/ubuntu.yml +26 -0
  4. data/.github/workflows/windows.yml +25 -0
  5. data/History.md +34 -0
  6. data/README.md +14 -46
  7. data/Rakefile +0 -86
  8. data/curses.gemspec +2 -3
  9. data/ext/curses/curses.c +70 -58
  10. data/ext/curses/extconf.rb +134 -21
  11. data/lib/curses.rb +5 -12
  12. data/sample/addch.rb +16 -0
  13. data/sample/attr_demo.rb +32 -0
  14. data/sample/colors.rb +26 -0
  15. data/sample/menu.rb +3 -3
  16. data/sample/mouse_move.rb +75 -0
  17. data/vendor/PDCurses/.gitignore +47 -0
  18. data/vendor/PDCurses/.travis.yml +49 -0
  19. data/vendor/PDCurses/CMakeLists.txt +68 -0
  20. data/vendor/PDCurses/HISTORY.md +2036 -0
  21. data/vendor/PDCurses/IMPLEMNT.md +327 -0
  22. data/vendor/PDCurses/README.md +77 -0
  23. data/vendor/PDCurses/acs_defs.h +265 -0
  24. data/vendor/PDCurses/appveyor.yml +218 -0
  25. data/vendor/PDCurses/cmake/README.md +71 -0
  26. data/vendor/PDCurses/cmake/build_dependencies.cmake +178 -0
  27. data/vendor/PDCurses/cmake/build_options.cmake +25 -0
  28. data/vendor/PDCurses/cmake/dll_version.cmake +26 -0
  29. data/vendor/PDCurses/cmake/gen_config_header.cmake +43 -0
  30. data/vendor/PDCurses/cmake/get_version.cmake +17 -0
  31. data/vendor/PDCurses/cmake/make_uninstall.cmake +19 -0
  32. data/vendor/PDCurses/cmake/project_common.cmake +121 -0
  33. data/vendor/PDCurses/cmake/resource.in.cmake +52 -0
  34. data/vendor/PDCurses/cmake/sdl2_ttf/CMakeLists.txt +83 -0
  35. data/vendor/PDCurses/cmake/target_arch.cmake +36 -0
  36. data/vendor/PDCurses/cmake/version.in.cmake +73 -0
  37. data/vendor/PDCurses/cmake/watcom_open_dos16_toolchain.cmake +96 -0
  38. data/vendor/PDCurses/cmake/watcom_open_dos32_toolchain.cmake +106 -0
  39. data/vendor/PDCurses/cmake/watcom_open_os2v2_toolchain.cmake +105 -0
  40. data/vendor/PDCurses/curses.h +1846 -0
  41. data/vendor/PDCurses/curspriv.h +134 -0
  42. data/vendor/PDCurses/demos/README.md +25 -0
  43. data/vendor/PDCurses/demos/firework.c +144 -0
  44. data/vendor/PDCurses/demos/newtest.c +581 -0
  45. data/vendor/PDCurses/demos/ozdemo.c +447 -0
  46. data/vendor/PDCurses/demos/ptest.c +283 -0
  47. data/vendor/PDCurses/demos/rain.c +157 -0
  48. data/vendor/PDCurses/demos/testcurs.c +1607 -0
  49. data/vendor/PDCurses/demos/tui.c +1048 -0
  50. data/vendor/PDCurses/demos/tui.h +65 -0
  51. data/vendor/PDCurses/demos/tuidemo.c +233 -0
  52. data/vendor/PDCurses/demos/version.c +61 -0
  53. data/vendor/PDCurses/demos/worm.c +432 -0
  54. data/vendor/PDCurses/demos/xmas.c +955 -0
  55. data/vendor/PDCurses/dos/CMakeLists.txt +47 -0
  56. data/vendor/PDCurses/dos/Makefile.bcc +83 -0
  57. data/vendor/PDCurses/dos/Makefile.dmc +257 -0
  58. data/vendor/PDCurses/dos/Makefile.msc +113 -0
  59. data/vendor/PDCurses/dos/Makefile.wcc +107 -0
  60. data/vendor/PDCurses/dos/README.md +51 -0
  61. data/vendor/PDCurses/dos/bccdos.lrf +9 -0
  62. data/vendor/PDCurses/dos/mscdos.lrf +50 -0
  63. data/vendor/PDCurses/dos/pdcclip.c +132 -0
  64. data/vendor/PDCurses/dos/pdcdisp.c +135 -0
  65. data/vendor/PDCurses/dos/pdcdos.h +194 -0
  66. data/vendor/PDCurses/dos/pdcgetsc.c +98 -0
  67. data/vendor/PDCurses/dos/pdckbd.c +513 -0
  68. data/vendor/PDCurses/dos/pdcscrn.c +785 -0
  69. data/vendor/PDCurses/dos/pdcsetsc.c +101 -0
  70. data/vendor/PDCurses/dos/pdcutil.c +212 -0
  71. data/vendor/PDCurses/libobjs.mif +26 -0
  72. data/vendor/PDCurses/makedist.mif +20 -0
  73. data/vendor/PDCurses/man/README.md +21 -0
  74. data/vendor/PDCurses/man/intro.md +361 -0
  75. data/vendor/PDCurses/man/manext.c +119 -0
  76. data/vendor/PDCurses/man/sdl.md +152 -0
  77. data/vendor/PDCurses/man/sdl2.md +58 -0
  78. data/vendor/PDCurses/man/x11.md +407 -0
  79. data/vendor/PDCurses/ncurses/CMakeLists.txt +66 -0
  80. data/vendor/PDCurses/ncurses/README.md +26 -0
  81. data/vendor/PDCurses/ncurses/makefile +29 -0
  82. data/vendor/PDCurses/os2/CMakeLists.txt +41 -0
  83. data/vendor/PDCurses/os2/Makefile.bcc +90 -0
  84. data/vendor/PDCurses/os2/Makefile.wcc +43 -0
  85. data/vendor/PDCurses/os2/README.md +43 -0
  86. data/vendor/PDCurses/os2/iccos2.lrf +50 -0
  87. data/vendor/PDCurses/os2/iccos2.mak +256 -0
  88. data/vendor/PDCurses/os2/pdcclip.c +188 -0
  89. data/vendor/PDCurses/os2/pdcdisp.c +93 -0
  90. data/vendor/PDCurses/os2/pdcgetsc.c +89 -0
  91. data/vendor/PDCurses/os2/pdckbd.c +521 -0
  92. data/vendor/PDCurses/os2/pdcos2.h +55 -0
  93. data/vendor/PDCurses/os2/pdcscrn.c +449 -0
  94. data/vendor/PDCurses/os2/pdcsetsc.c +112 -0
  95. data/vendor/PDCurses/os2/pdcutil.c +52 -0
  96. data/vendor/PDCurses/panel.h +56 -0
  97. data/vendor/PDCurses/pdcurses/README.md +25 -0
  98. data/vendor/PDCurses/pdcurses/addch.c +693 -0
  99. data/vendor/PDCurses/pdcurses/addchstr.c +245 -0
  100. data/vendor/PDCurses/pdcurses/addstr.c +240 -0
  101. data/vendor/PDCurses/pdcurses/attr.c +359 -0
  102. data/vendor/PDCurses/pdcurses/beep.c +68 -0
  103. data/vendor/PDCurses/pdcurses/bkgd.c +223 -0
  104. data/vendor/PDCurses/pdcurses/border.c +411 -0
  105. data/vendor/PDCurses/pdcurses/clear.c +159 -0
  106. data/vendor/PDCurses/pdcurses/color.c +298 -0
  107. data/vendor/PDCurses/pdcurses/debug.c +109 -0
  108. data/vendor/PDCurses/pdcurses/delch.c +96 -0
  109. data/vendor/PDCurses/pdcurses/deleteln.c +211 -0
  110. data/vendor/PDCurses/pdcurses/deprec.c +27 -0
  111. data/vendor/PDCurses/pdcurses/getch.c +417 -0
  112. data/vendor/PDCurses/pdcurses/getstr.c +474 -0
  113. data/vendor/PDCurses/pdcurses/getyx.c +139 -0
  114. data/vendor/PDCurses/pdcurses/inch.c +127 -0
  115. data/vendor/PDCurses/pdcurses/inchstr.c +214 -0
  116. data/vendor/PDCurses/pdcurses/initscr.c +367 -0
  117. data/vendor/PDCurses/pdcurses/inopts.c +324 -0
  118. data/vendor/PDCurses/pdcurses/insch.c +271 -0
  119. data/vendor/PDCurses/pdcurses/insstr.c +264 -0
  120. data/vendor/PDCurses/pdcurses/instr.c +246 -0
  121. data/vendor/PDCurses/pdcurses/kernel.c +259 -0
  122. data/vendor/PDCurses/pdcurses/keyname.c +157 -0
  123. data/vendor/PDCurses/pdcurses/mouse.c +438 -0
  124. data/vendor/PDCurses/pdcurses/move.c +57 -0
  125. data/vendor/PDCurses/pdcurses/outopts.c +159 -0
  126. data/vendor/PDCurses/pdcurses/overlay.c +214 -0
  127. data/vendor/PDCurses/pdcurses/pad.c +260 -0
  128. data/vendor/PDCurses/pdcurses/panel.c +633 -0
  129. data/vendor/PDCurses/pdcurses/printw.c +126 -0
  130. data/vendor/PDCurses/pdcurses/refresh.c +279 -0
  131. data/vendor/PDCurses/pdcurses/scanw.c +578 -0
  132. data/vendor/PDCurses/pdcurses/scr_dump.c +213 -0
  133. data/vendor/PDCurses/pdcurses/scroll.c +101 -0
  134. data/vendor/PDCurses/pdcurses/slk.c +591 -0
  135. data/vendor/PDCurses/pdcurses/termattr.c +182 -0
  136. data/vendor/PDCurses/pdcurses/terminfo.c +217 -0
  137. data/vendor/PDCurses/pdcurses/touch.c +163 -0
  138. data/vendor/PDCurses/pdcurses/util.c +312 -0
  139. data/vendor/PDCurses/pdcurses/window.c +569 -0
  140. data/vendor/PDCurses/sdl1/Makefile.mng +110 -0
  141. data/vendor/PDCurses/sdl1/README.md +31 -0
  142. data/vendor/PDCurses/sdl1/deffont.h +385 -0
  143. data/vendor/PDCurses/sdl1/deficon.h +23 -0
  144. data/vendor/PDCurses/sdl1/pdcclip.c +131 -0
  145. data/vendor/PDCurses/sdl1/pdcdisp.c +373 -0
  146. data/vendor/PDCurses/sdl1/pdcgetsc.c +30 -0
  147. data/vendor/PDCurses/sdl1/pdckbd.c +405 -0
  148. data/vendor/PDCurses/sdl1/pdcscrn.c +414 -0
  149. data/vendor/PDCurses/sdl1/pdcsdl.h +31 -0
  150. data/vendor/PDCurses/sdl1/pdcsetsc.c +64 -0
  151. data/vendor/PDCurses/sdl1/pdcutil.c +40 -0
  152. data/vendor/PDCurses/sdl1/sdltest.c +79 -0
  153. data/vendor/PDCurses/sdl2/CMakeLists.txt +76 -0
  154. data/vendor/PDCurses/sdl2/Makefile.vc +164 -0
  155. data/vendor/PDCurses/sdl2/README.md +34 -0
  156. data/vendor/PDCurses/sdl2/deffont.h +385 -0
  157. data/vendor/PDCurses/sdl2/deficon.h +23 -0
  158. data/vendor/PDCurses/sdl2/pdcclip.c +93 -0
  159. data/vendor/PDCurses/sdl2/pdcdisp.c +534 -0
  160. data/vendor/PDCurses/sdl2/pdcgetsc.c +30 -0
  161. data/vendor/PDCurses/sdl2/pdckbd.c +480 -0
  162. data/vendor/PDCurses/sdl2/pdcscrn.c +443 -0
  163. data/vendor/PDCurses/sdl2/pdcsdl.h +33 -0
  164. data/vendor/PDCurses/sdl2/pdcsetsc.c +67 -0
  165. data/vendor/PDCurses/sdl2/pdcutil.c +39 -0
  166. data/vendor/PDCurses/sdl2/sdltest.c +81 -0
  167. data/vendor/PDCurses/term.h +48 -0
  168. data/vendor/PDCurses/version.mif +7 -0
  169. data/vendor/PDCurses/vt/CMakeLists.txt +28 -0
  170. data/vendor/PDCurses/vt/Makefile.bcc +111 -0
  171. data/vendor/PDCurses/vt/Makefile.dmc +258 -0
  172. data/vendor/PDCurses/vt/Makefile.vc +144 -0
  173. data/vendor/PDCurses/vt/Makefile.wcc +107 -0
  174. data/vendor/PDCurses/vt/README.md +64 -0
  175. data/vendor/PDCurses/vt/pdcclip.c +20 -0
  176. data/vendor/PDCurses/vt/pdcdisp.c +284 -0
  177. data/vendor/PDCurses/vt/pdcgetsc.c +27 -0
  178. data/vendor/PDCurses/vt/pdckbd.c +394 -0
  179. data/vendor/PDCurses/vt/pdcscrn.c +434 -0
  180. data/vendor/PDCurses/vt/pdcsetsc.c +45 -0
  181. data/vendor/PDCurses/vt/pdcutil.c +43 -0
  182. data/vendor/PDCurses/vt/pdcvt.h +16 -0
  183. data/vendor/PDCurses/watcom.mif +68 -0
  184. data/vendor/PDCurses/wincon/CMakeLists.txt +27 -0
  185. data/vendor/PDCurses/wincon/Makefile.bcc +88 -0
  186. data/vendor/PDCurses/wincon/Makefile.dmc +256 -0
  187. data/vendor/PDCurses/wincon/Makefile.lcc +273 -0
  188. data/vendor/PDCurses/wincon/Makefile.mng +176 -0
  189. data/vendor/PDCurses/wincon/Makefile.vc +144 -0
  190. data/vendor/PDCurses/wincon/Makefile.wcc +51 -0
  191. data/vendor/PDCurses/wincon/README.md +85 -0
  192. data/vendor/PDCurses/wincon/pdcclip.c +174 -0
  193. data/vendor/PDCurses/wincon/pdcdisp.c +143 -0
  194. data/vendor/PDCurses/wincon/pdcgetsc.c +55 -0
  195. data/vendor/PDCurses/wincon/pdckbd.c +786 -0
  196. data/vendor/PDCurses/wincon/pdcscrn.c +717 -0
  197. data/vendor/PDCurses/wincon/pdcsetsc.c +91 -0
  198. data/vendor/PDCurses/wincon/pdcurses.ico +0 -0
  199. data/vendor/PDCurses/wincon/pdcurses.rc +28 -0
  200. data/vendor/PDCurses/wincon/pdcutil.c +41 -0
  201. data/vendor/PDCurses/wincon/pdcwin.h +31 -0
  202. data/vendor/PDCurses/wingui/CMakeLists.txt +27 -0
  203. data/vendor/PDCurses/wingui/Makefile.bcc +85 -0
  204. data/vendor/PDCurses/wingui/Makefile.dmc +259 -0
  205. data/vendor/PDCurses/wingui/Makefile.lcc +273 -0
  206. data/vendor/PDCurses/wingui/Makefile.mng +171 -0
  207. data/vendor/PDCurses/wingui/Makefile.vc +144 -0
  208. data/vendor/PDCurses/wingui/Makefile.wcc +51 -0
  209. data/vendor/PDCurses/wingui/README.md +93 -0
  210. data/vendor/PDCurses/wingui/pdcclip.c +174 -0
  211. data/vendor/PDCurses/wingui/pdcdisp.c +718 -0
  212. data/vendor/PDCurses/wingui/pdcgetsc.c +30 -0
  213. data/vendor/PDCurses/wingui/pdckbd.c +143 -0
  214. data/vendor/PDCurses/wingui/pdcscrn.c +2797 -0
  215. data/vendor/PDCurses/wingui/pdcsetsc.c +89 -0
  216. data/vendor/PDCurses/wingui/pdcurses.ico +0 -0
  217. data/vendor/PDCurses/wingui/pdcurses.rc +28 -0
  218. data/vendor/PDCurses/wingui/pdcutil.c +61 -0
  219. data/vendor/PDCurses/wingui/pdcwin.h +122 -0
  220. data/vendor/PDCurses/x11/Makefile.in +754 -0
  221. data/vendor/PDCurses/x11/PDCurses.spec +82 -0
  222. data/vendor/PDCurses/x11/README.md +62 -0
  223. data/vendor/PDCurses/x11/ScrollBox.c +319 -0
  224. data/vendor/PDCurses/x11/ScrollBox.h +51 -0
  225. data/vendor/PDCurses/x11/ScrollBoxP.h +70 -0
  226. data/vendor/PDCurses/x11/aclocal.m4 +994 -0
  227. data/vendor/PDCurses/x11/big_icon.xbm +46 -0
  228. data/vendor/PDCurses/x11/compose.h +201 -0
  229. data/vendor/PDCurses/x11/config.guess +1500 -0
  230. data/vendor/PDCurses/x11/config.h.in +100 -0
  231. data/vendor/PDCurses/x11/config.sub +1616 -0
  232. data/vendor/PDCurses/x11/configure +6700 -0
  233. data/vendor/PDCurses/x11/configure.ac +295 -0
  234. data/vendor/PDCurses/x11/debian/changelog +6 -0
  235. data/vendor/PDCurses/x11/debian/compat +1 -0
  236. data/vendor/PDCurses/x11/debian/control +11 -0
  237. data/vendor/PDCurses/x11/debian/copyright +27 -0
  238. data/vendor/PDCurses/x11/debian/rules +98 -0
  239. data/vendor/PDCurses/x11/install-sh +253 -0
  240. data/vendor/PDCurses/x11/little_icon.xbm +14 -0
  241. data/vendor/PDCurses/x11/ncurses_cfg.h +45 -0
  242. data/vendor/PDCurses/x11/pdcclip.c +173 -0
  243. data/vendor/PDCurses/x11/pdcdisp.c +85 -0
  244. data/vendor/PDCurses/x11/pdcgetsc.c +28 -0
  245. data/vendor/PDCurses/x11/pdckbd.c +104 -0
  246. data/vendor/PDCurses/x11/pdcscrn.c +258 -0
  247. data/vendor/PDCurses/x11/pdcsetsc.c +95 -0
  248. data/vendor/PDCurses/x11/pdcutil.c +52 -0
  249. data/vendor/PDCurses/x11/pdcx11.c +316 -0
  250. data/vendor/PDCurses/x11/pdcx11.h +191 -0
  251. data/vendor/PDCurses/x11/sb.c +155 -0
  252. data/vendor/PDCurses/x11/x11.c +3686 -0
  253. data/vendor/PDCurses/x11/xcurses-config.in +81 -0
  254. metadata +258 -24
  255. data/.travis.yml +0 -16
  256. data/appveyor.yml +0 -16
@@ -0,0 +1,89 @@
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
@@ -0,0 +1,28 @@
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"
@@ -0,0 +1,61 @@
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
+ };
@@ -0,0 +1,122 @@
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
+ */
@@ -0,0 +1,754 @@
1
+ # Makefile for PDCurses library for X11
2
+
3
+ SHELL = @SHELL@
4
+
5
+ @SET_MAKE@
6
+
7
+ # srcdir is set to .../PDCurses/x11 by configure
8
+ srcdir = @srcdir@
9
+ basedir = $(srcdir)/..
10
+ abs_basedir = @abs_srcdir@/..
11
+ exec_prefix = @exec_prefix@
12
+ prefix = @prefix@
13
+ libdir = @libdir@
14
+ bindir = @bindir@
15
+ includedir = @includedir@
16
+
17
+ x11dir = $(srcdir)
18
+ pdcursesdir = $(basedir)/pdcurses
19
+ demodir = $(basedir)/demos
20
+
21
+ PDCURSES_CONFIG_H =./config.h
22
+ PDCURSES_CURSES_H =$(basedir)/curses.h
23
+ PDCURSES_CURSPRIV_H =$(basedir)/curspriv.h
24
+ PDCURSES_HEADERS =$(PDCURSES_CONFIG_H) $(PDCURSES_CURSES_H) \
25
+ $(PDCURSES_CURSPRIV_H)
26
+ PDCURSES_X11_H =$(x11dir)/pdcx11.h
27
+
28
+ INSTALL = $(x11dir)/install-sh
29
+ RANLIB = @RANLIB@
30
+ SHLPRE = @SHLPRE@
31
+ SHLPST = @SHLPST@
32
+ SHLFILE = XCurses
33
+ SHL_TARGETS = @SHL_TARGETS@
34
+ OTHER_INSTALLS = @OTHER_INSTALLS@
35
+ BASE_INSTALL = @BASE_INSTALL@
36
+ BASE_BINARY = @BASE_BINARY@
37
+ CAN_USE_ABI = @CAN_USE_ABI@
38
+ RPMTOPDIR = @RPMTOPDIR@
39
+ MYDISTRO = @MYDISTRO@
40
+ MACH_ARCH = @MACH_ARCH@
41
+ LN_S = @LN_S@ -f
42
+
43
+ include $(basedir)/version.mif
44
+
45
+ PDC_DIR=PDCurses-$(VERDOT)
46
+
47
+ ZIPFILE = pdcurs$(VER).zip
48
+ TARBALL = $(PDC_DIR).tar.gz
49
+
50
+ LD_RXLIB1 = @LD_RXLIB1@
51
+ LD_RXLIB2 = @MH_XLIBS@ @MH_EXTRA_LIBS@ -lc
52
+
53
+ CFLAGS = @CFLAGS@
54
+
55
+ CPPFLAGS = @DEFS@ -DXCURSES @SYS_DEFS@ -I$(basedir) -I.
56
+
57
+ BUILD = @CC@ -c $(CFLAGS) $(CPPFLAGS) @MH_XINC_DIR@
58
+ DYN_BUILD = @O2SAVE@ $(BUILD) @DYN_COMP@ @CC2O@
59
+
60
+ LINK = @PURIFY@ @CC@
61
+ #LDFLAGS = $(LIB_DEPS) @LDFLAGS@ @LIBS@ @MH_XLIBS@ @MH_EXTRA_LIBS@
62
+ LDFLAGS = $(LIBCURSES) @LDFLAGS@ @LIBS@ @MH_XLIBS@ @MH_EXTRA_LIBS@
63
+
64
+ LIBCURSES = libXCurses.a
65
+
66
+ LIB_DEPS = -L. -lXCurses
67
+
68
+ PDCLIBS = $(LIBCURSES) @SHL_TARGETS@
69
+
70
+ DEMOS = firework ozdemo newtest ptest rain testcurs tuidemo worm xmas
71
+ DEMOOBJS = firework.o ozdemo.o newtest.o ptest.o rain.o testcurs.o tui.o \
72
+ tuidemo.o worm.o xmas.o
73
+
74
+ SHLFILE = XCurses
75
+
76
+ all: $(PDCLIBS) $(DEMOS)
77
+
78
+ install: $(BASE_INSTALL) $(OTHER_INSTALLS)
79
+
80
+ # base install; for builds with ABI .so or non ABI .so
81
+ installbase: all
82
+ $(INSTALL) -d -m 755 $(DESTDIR)$(libdir)
83
+ $(INSTALL) -d -m 755 $(DESTDIR)$(bindir)
84
+ $(INSTALL) -d -m 755 $(DESTDIR)$(includedir)
85
+ $(INSTALL) -d -m 755 $(DESTDIR)$(includedir)/xcurses
86
+ $(INSTALL) -c -m 644 $(basedir)/curses.h $(DESTDIR)$(includedir)/xcurses.h
87
+ $(INSTALL) -c -m 644 $(basedir)/curses.h $(DESTDIR)$(includedir)/xcurses/curses.h
88
+ sed -e 's/#include <curses.h>/#include <xcurses.h>/' < $(basedir)/panel.h > ./xpanel.h
89
+ $(INSTALL) -m 644 ./xpanel.h $(DESTDIR)$(includedir)/xpanel.h
90
+ $(INSTALL) -c -m 644 $(basedir)/panel.h $(DESTDIR)$(includedir)/xcurses/panel.h
91
+ $(INSTALL) -c -m 644 $(basedir)/term.h $(DESTDIR)$(includedir)/xcurses/term.h
92
+ $(INSTALL) -c -m 644 ./libXCurses.a $(DESTDIR)$(libdir)/libXCurses.a
93
+ -$(RANLIB) $(DESTDIR)$(libdir)/libXCurses.a
94
+ (cd $(DESTDIR)$(libdir); $(LN_S) libXCurses.a libXpanel.a)
95
+ -$(RANLIB) $(DESTDIR)$(libdir)/libXpanel.a
96
+ $(INSTALL) -c -m 755 ./xcurses-config $(DESTDIR)$(bindir)/xcurses-config
97
+
98
+ installlib:
99
+ -$(INSTALL) -c -m 755 ./$(SHLPRE)$(SHLFILE)$(SHLPST) $(DESTDIR)$(libdir)/$(SHLPRE)$(SHLFILE)$(SHLPST)
100
+ (cd $(DESTDIR)$(libdir); $(LN_S) $(SHLPRE)$(SHLFILE)$(SHLPST) $(libdir)/$(SHLPRE)Xpanel$(SHLPST))
101
+
102
+ installabilib:
103
+ -$(INSTALL) -c -m 755 ./$(SHLPRE)$(SHLFILE)$(SHLPST).$(ABI) $(DESTDIR)$(libdir)/$(SHLPRE)$(SHLFILE)$(SHLPST).$(ABI)
104
+ (cd $(DESTDIR)$(libdir); $(LN_S) $(SHLPRE)$(SHLFILE)$(SHLPST).$(ABI) $(SHLPRE)$(SHLFILE)$(SHLPST).$(ABI_MAJOR))
105
+ (cd $(DESTDIR)$(libdir); $(LN_S) $(SHLPRE)$(SHLFILE)$(SHLPST).$(ABI_MAJOR) $(SHLPRE)$(SHLFILE)$(SHLPST))
106
+ (cd $(DESTDIR)$(libdir); $(LN_S) $(SHLPRE)$(SHLFILE)$(SHLPST).$(ABI) $(SHLPRE)Xpanel$(SHLPST).$(ABI))
107
+ (cd $(DESTDIR)$(libdir); $(LN_S) $(SHLPRE)Xpanel$(SHLPST).$(ABI) $(SHLPRE)Xpanel$(SHLPST).$(ABI_MAJOR))
108
+ (cd $(DESTDIR)$(libdir); $(LN_S) $(SHLPRE)Xpanel$(SHLPST).$(ABI_MAJOR) $(SHLPRE)Xpanel$(SHLPST))
109
+
110
+ uninstall:
111
+ -rm -f $(DESTDIR)$(includedir)/xcurses.h
112
+ -rm -f $(DESTDIR)$(includedir)/xpanel.h
113
+ -rm -fr $(DESTDIR)$(includedir)/xcurses/
114
+ -rm -f $(DESTDIR)$(libdir)/libXCurses.a
115
+ -rm -f $(DESTDIR)$(libdir)/libXpanel.a
116
+ -rm -f $(DESTDIR)$(bindir)/xcurses-config
117
+ -rm -f $(DESTDIR)$(libdir)/$(SHLPRE)$(SHLFILE)$(SHLPST)
118
+ -rm -f $(DESTDIR)$(libdir)/$(SHLPRE)$(SHLFILE)$(SHLPST).$(ABI)
119
+ -rm -f $(DESTDIR)$(libdir)/$(SHLPRE)$(SHLFILE)$(SHLPST).$(ABI_MAJOR)
120
+ -rm -f $(DESTDIR)$(libdir)/$(SHLPRE)Xpanel$(SHLPST)
121
+ -rm -f $(DESTDIR)$(libdir)/$(SHLPRE)Xpanel$(SHLPST).$(ABI)
122
+ -rm -f $(DESTDIR)$(libdir)/$(SHLPRE)Xpanel$(SHLPST).$(ABI_MAJOR)
123
+
124
+
125
+ oldinstall:
126
+ $(INSTALL) -d -m 755 $(libdir)
127
+ $(INSTALL) -d -m 755 $(bindir)
128
+ $(INSTALL) -d -m 755 $(includedir)
129
+ $(INSTALL) -d -m 755 $(includedir)/xcurses
130
+ $(INSTALL) -c -m 644 $(basedir)/curses.h $(includedir)/xcurses.h
131
+ $(INSTALL) -c -m 644 $(basedir)/curses.h $(includedir)/xcurses/curses.h
132
+ sed -e 's/#include <curses.h>/#include <xcurses.h>/' \
133
+ < $(basedir)/panel.h > ./xpanel.h
134
+ $(INSTALL) -m 644 ./xpanel.h $(includedir)/xpanel.h
135
+ $(INSTALL) -c -m 644 $(basedir)/panel.h $(includedir)/xcurses/panel.h
136
+ $(INSTALL) -c -m 644 $(basedir)/term.h $(includedir)/xcurses/term.h
137
+ $(INSTALL) -c -m 644 ./libXCurses.a $(libdir)/libXCurses.a
138
+ -$(RANLIB) $(libdir)/libXCurses.a
139
+ -$(INSTALL) -c -m 755 ./$(SHLPRE)$(SHLFILE)$(SHLPST) \
140
+ $(libdir)/$(SHLPRE)$(SHLFILE)$(SHLPST)
141
+ ln -f -s $(libdir)/$(SHLPRE)$(SHLFILE)$(SHLPST) \
142
+ $(libdir)/$(SHLPRE)Xpanel$(SHLPST)
143
+ ln -f -s $(libdir)/libXCurses.a $(libdir)/libXpanel.a
144
+ -$(RANLIB) $(libdir)/libXpanel.a
145
+ $(INSTALL) -c -m 755 ./xcurses-config $(bindir)/xcurses-config
146
+
147
+ clean:
148
+ -rm -rf *.o *.sho trace $(PDCLIBS) $(DEMOS) config.log \
149
+ config.cache config.status
150
+
151
+ demos: $(DEMOS)
152
+
153
+ distclean: clean
154
+ -rm -f Makefile config.h xcurses-config
155
+
156
+ mostlyclean: clean
157
+
158
+ realclean: distclean
159
+
160
+ LIBOBJS = addch.o addchstr.o addstr.o attr.o beep.o bkgd.o border.o \
161
+ clear.o color.o delch.o deleteln.o deprec.o getch.o getstr.o getyx.o \
162
+ inch.o inchstr.o initscr.o inopts.o insch.o insstr.o instr.o kernel.o \
163
+ keyname.o mouse.o move.o outopts.o overlay.o pad.o panel.o printw.o \
164
+ refresh.o scanw.o scr_dump.o scroll.o slk.o termattr.o terminfo.o \
165
+ touch.o util.o window.o debug.o
166
+
167
+ PDCOBJS = pdcclip.o pdcdisp.o pdcgetsc.o pdckbd.o pdcscrn.o pdcsetsc.o \
168
+ pdcutil.o pdcx11.o x11.o sb.o ScrollBox.o
169
+
170
+ LIBSHOBJS = $(LIBOBJS:.o=.sho)
171
+ PDCSHOBJS = $(PDCOBJS:.o=.sho)
172
+
173
+ SHOFILES = $(LIBSHOBJS) $(PDCSHOBJS)
174
+
175
+ $(LIBCURSES) : $(LIBOBJS) $(PDCOBJS)
176
+ ar rv $@ $?
177
+ -$(RANLIB) $@
178
+
179
+ $(SHLPRE)$(SHLFILE)$(SHLPST) : $(SHOFILES)
180
+ $(LD_RXLIB1) -o $@ $(SHOFILES) $(LD_RXLIB2)
181
+
182
+ $(SHLPRE)$(SHLFILE)$(SHLPST).$(ABI): $(SHOFILES)
183
+ $(LD_RXLIB1) -o $@ $(SHOFILES) $(LD_RXLIB2)
184
+ -rm -f $(SHLPRE)$(SHLFILE)$(SHLPST).$(ABI_MAJOR)
185
+ -rm -f $(SHLPRE)$(SHLFILE)$(SHLPST)
186
+ -$(LN_S) $(SHLPRE)$(SHLFILE)$(SHLPST).$(ABI) $(SHLPRE)$(SHLFILE)$(SHLPST).$(ABI_MAJOR)
187
+ -$(LN_S) $(SHLPRE)$(SHLFILE)$(SHLPST).$(ABI_MAJOR) $(SHLPRE)$(SHLFILE)$(SHLPST)
188
+
189
+ $(LIBOBJS) $(PDCOBJS) $(SHOFILES) : $(PDCURSES_HEADERS)
190
+ $(PDCOBJS) $(PDCSHOBJS) : $(PDCURSES_X11_H)
191
+ $(DEMOOBJS) : $(PDCURSES_CURSES_H)
192
+ $(DEMOS) : $(LIBCURSES)
193
+ terminfo.o terminfo.sho: $(TERM_HEADER)
194
+
195
+ addch.o: $(pdcursesdir)/addch.c
196
+ $(BUILD) $(pdcursesdir)/addch.c
197
+
198
+ addchstr.o: $(pdcursesdir)/addchstr.c
199
+ $(BUILD) $(pdcursesdir)/addchstr.c
200
+
201
+ addstr.o: $(pdcursesdir)/addstr.c
202
+ $(BUILD) $(pdcursesdir)/addstr.c
203
+
204
+ attr.o: $(pdcursesdir)/attr.c
205
+ $(BUILD) $(pdcursesdir)/attr.c
206
+
207
+ beep.o: $(pdcursesdir)/beep.c
208
+ $(BUILD) $(pdcursesdir)/beep.c
209
+
210
+ bkgd.o: $(pdcursesdir)/bkgd.c
211
+ $(BUILD) $(pdcursesdir)/bkgd.c
212
+
213
+ border.o: $(pdcursesdir)/border.c
214
+ $(BUILD) $(pdcursesdir)/border.c
215
+
216
+ clear.o: $(pdcursesdir)/clear.c
217
+ $(BUILD) $(pdcursesdir)/clear.c
218
+
219
+ color.o: $(pdcursesdir)/color.c
220
+ $(BUILD) $(pdcursesdir)/color.c
221
+
222
+ delch.o: $(pdcursesdir)/delch.c
223
+ $(BUILD) $(pdcursesdir)/delch.c
224
+
225
+ deleteln.o: $(pdcursesdir)/deleteln.c
226
+ $(BUILD) $(pdcursesdir)/deleteln.c
227
+
228
+ deprec.o: $(pdcursesdir)/deprec.c
229
+ $(BUILD) $(pdcursesdir)/deprec.c
230
+
231
+ getch.o: $(pdcursesdir)/getch.c
232
+ $(BUILD) $(pdcursesdir)/getch.c
233
+
234
+ getstr.o: $(pdcursesdir)/getstr.c
235
+ $(BUILD) $(pdcursesdir)/getstr.c
236
+
237
+ getyx.o: $(pdcursesdir)/getyx.c
238
+ $(BUILD) $(pdcursesdir)/getyx.c
239
+
240
+ inch.o: $(pdcursesdir)/inch.c
241
+ $(BUILD) $(pdcursesdir)/inch.c
242
+
243
+ inchstr.o: $(pdcursesdir)/inchstr.c
244
+ $(BUILD) $(pdcursesdir)/inchstr.c
245
+
246
+ initscr.o: $(pdcursesdir)/initscr.c
247
+ $(BUILD) $(pdcursesdir)/initscr.c
248
+
249
+ inopts.o: $(pdcursesdir)/inopts.c
250
+ $(BUILD) $(pdcursesdir)/inopts.c
251
+
252
+ insch.o: $(pdcursesdir)/insch.c
253
+ $(BUILD) $(pdcursesdir)/insch.c
254
+
255
+ insstr.o: $(pdcursesdir)/insstr.c
256
+ $(BUILD) $(pdcursesdir)/insstr.c
257
+
258
+ instr.o: $(pdcursesdir)/instr.c
259
+ $(BUILD) $(pdcursesdir)/instr.c
260
+
261
+ kernel.o: $(pdcursesdir)/kernel.c
262
+ $(BUILD) $(pdcursesdir)/kernel.c
263
+
264
+ keyname.o: $(pdcursesdir)/keyname.c
265
+ $(BUILD) $(pdcursesdir)/keyname.c
266
+
267
+ mouse.o: $(pdcursesdir)/mouse.c
268
+ $(BUILD) $(pdcursesdir)/mouse.c
269
+
270
+ move.o: $(pdcursesdir)/move.c
271
+ $(BUILD) $(pdcursesdir)/move.c
272
+
273
+ outopts.o: $(pdcursesdir)/outopts.c
274
+ $(BUILD) $(pdcursesdir)/outopts.c
275
+
276
+ overlay.o: $(pdcursesdir)/overlay.c
277
+ $(BUILD) $(pdcursesdir)/overlay.c
278
+
279
+ pad.o: $(pdcursesdir)/pad.c
280
+ $(BUILD) $(pdcursesdir)/pad.c
281
+
282
+ panel.o: $(pdcursesdir)/panel.c $(basedir)/panel.h
283
+ $(BUILD) $(pdcursesdir)/panel.c
284
+
285
+ printw.o: $(pdcursesdir)/printw.c
286
+ $(BUILD) $(pdcursesdir)/printw.c
287
+
288
+ refresh.o: $(pdcursesdir)/refresh.c
289
+ $(BUILD) $(pdcursesdir)/refresh.c
290
+
291
+ scanw.o: $(pdcursesdir)/scanw.c
292
+ $(BUILD) $(pdcursesdir)/scanw.c
293
+
294
+ scr_dump.o: $(pdcursesdir)/scr_dump.c
295
+ $(BUILD) $(pdcursesdir)/scr_dump.c
296
+
297
+ scroll.o: $(pdcursesdir)/scroll.c
298
+ $(BUILD) $(pdcursesdir)/scroll.c
299
+
300
+ slk.o: $(pdcursesdir)/slk.c
301
+ $(BUILD) $(pdcursesdir)/slk.c
302
+
303
+ termattr.o: $(pdcursesdir)/termattr.c
304
+ $(BUILD) $(pdcursesdir)/termattr.c
305
+
306
+ terminfo.o: $(pdcursesdir)/terminfo.c
307
+ $(BUILD) $(pdcursesdir)/terminfo.c
308
+
309
+ touch.o: $(pdcursesdir)/touch.c
310
+ $(BUILD) $(pdcursesdir)/touch.c
311
+
312
+ util.o: $(pdcursesdir)/util.c
313
+ $(BUILD) $(pdcursesdir)/util.c
314
+
315
+ window.o: $(pdcursesdir)/window.c
316
+ $(BUILD) $(pdcursesdir)/window.c
317
+
318
+ debug.o: $(pdcursesdir)/debug.c
319
+ $(BUILD) $(pdcursesdir)/debug.c
320
+
321
+ pdcclip.o: $(x11dir)/pdcclip.c
322
+ $(BUILD) $(x11dir)/pdcclip.c
323
+
324
+ pdcdisp.o: $(x11dir)/pdcdisp.c
325
+ $(BUILD) $(x11dir)/pdcdisp.c
326
+
327
+ pdcgetsc.o: $(x11dir)/pdcgetsc.c
328
+ $(BUILD) $(x11dir)/pdcgetsc.c
329
+
330
+ pdckbd.o: $(x11dir)/pdckbd.c
331
+ $(BUILD) $(x11dir)/pdckbd.c
332
+
333
+ pdcscrn.o: $(x11dir)/pdcscrn.c
334
+ $(BUILD) $(x11dir)/pdcscrn.c
335
+
336
+ pdcsetsc.o: $(x11dir)/pdcsetsc.c
337
+ $(BUILD) $(x11dir)/pdcsetsc.c
338
+
339
+ pdcutil.o: $(x11dir)/pdcutil.c
340
+ $(BUILD) $(x11dir)/pdcutil.c
341
+
342
+ pdcx11.o: $(x11dir)/pdcx11.c
343
+ $(BUILD) $(x11dir)/pdcx11.c
344
+
345
+ ScrollBox.o: $(x11dir)/ScrollBox.c
346
+ $(BUILD) $(x11dir)/ScrollBox.c
347
+
348
+ sb.o: $(x11dir)/sb.c
349
+ $(BUILD) $(x11dir)/sb.c
350
+
351
+ x11.o: $(x11dir)/x11.c
352
+ $(BUILD) $(x11dir)/x11.c
353
+
354
+ addch.sho: $(pdcursesdir)/addch.c
355
+ $(DYN_BUILD) $(pdcursesdir)/addch.c
356
+ @SAVE2O@
357
+
358
+ addchstr.sho: $(pdcursesdir)/addchstr.c
359
+ $(DYN_BUILD) $(pdcursesdir)/addchstr.c
360
+ @SAVE2O@
361
+
362
+ addstr.sho: $(pdcursesdir)/addstr.c
363
+ $(DYN_BUILD) $(pdcursesdir)/addstr.c
364
+ @SAVE2O@
365
+
366
+ attr.sho: $(pdcursesdir)/attr.c
367
+ $(DYN_BUILD) $(pdcursesdir)/attr.c
368
+ @SAVE2O@
369
+
370
+ beep.sho: $(pdcursesdir)/beep.c
371
+ $(DYN_BUILD) $(pdcursesdir)/beep.c
372
+ @SAVE2O@
373
+
374
+ bkgd.sho: $(pdcursesdir)/bkgd.c
375
+ $(DYN_BUILD) $(pdcursesdir)/bkgd.c
376
+ @SAVE2O@
377
+
378
+ border.sho: $(pdcursesdir)/border.c
379
+ $(DYN_BUILD) $(pdcursesdir)/border.c
380
+ @SAVE2O@
381
+
382
+ clear.sho: $(pdcursesdir)/clear.c
383
+ $(DYN_BUILD) $(pdcursesdir)/clear.c
384
+ @SAVE2O@
385
+
386
+ color.sho: $(pdcursesdir)/color.c
387
+ $(DYN_BUILD) $(pdcursesdir)/color.c
388
+ @SAVE2O@
389
+
390
+ delch.sho: $(pdcursesdir)/delch.c
391
+ $(DYN_BUILD) $(pdcursesdir)/delch.c
392
+ @SAVE2O@
393
+
394
+ deleteln.sho: $(pdcursesdir)/deleteln.c
395
+ $(DYN_BUILD) $(pdcursesdir)/deleteln.c
396
+ @SAVE2O@
397
+
398
+ deprec.sho: $(pdcursesdir)/deprec.c
399
+ $(DYN_BUILD) $(pdcursesdir)/deprec.c
400
+ @SAVE2O@
401
+
402
+ getch.sho: $(pdcursesdir)/getch.c
403
+ $(DYN_BUILD) $(pdcursesdir)/getch.c
404
+ @SAVE2O@
405
+
406
+ getstr.sho: $(pdcursesdir)/getstr.c
407
+ $(DYN_BUILD) $(pdcursesdir)/getstr.c
408
+ @SAVE2O@
409
+
410
+ getyx.sho: $(pdcursesdir)/getyx.c
411
+ $(DYN_BUILD) $(pdcursesdir)/getyx.c
412
+ @SAVE2O@
413
+
414
+ inch.sho: $(pdcursesdir)/inch.c
415
+ $(DYN_BUILD) $(pdcursesdir)/inch.c
416
+ @SAVE2O@
417
+
418
+ inchstr.sho: $(pdcursesdir)/inchstr.c
419
+ $(DYN_BUILD) $(pdcursesdir)/inchstr.c
420
+ @SAVE2O@
421
+
422
+ initscr.sho: $(pdcursesdir)/initscr.c
423
+ $(DYN_BUILD) $(pdcursesdir)/initscr.c
424
+ @SAVE2O@
425
+
426
+ inopts.sho: $(pdcursesdir)/inopts.c
427
+ $(DYN_BUILD) $(pdcursesdir)/inopts.c
428
+ @SAVE2O@
429
+
430
+ insch.sho: $(pdcursesdir)/insch.c
431
+ $(DYN_BUILD) $(pdcursesdir)/insch.c
432
+ @SAVE2O@
433
+
434
+ insstr.sho: $(pdcursesdir)/insstr.c
435
+ $(DYN_BUILD) $(pdcursesdir)/insstr.c
436
+ @SAVE2O@
437
+
438
+ instr.sho: $(pdcursesdir)/instr.c
439
+ $(DYN_BUILD) $(pdcursesdir)/instr.c
440
+ @SAVE2O@
441
+
442
+ kernel.sho: $(pdcursesdir)/kernel.c
443
+ $(DYN_BUILD) $(pdcursesdir)/kernel.c
444
+ @SAVE2O@
445
+
446
+ keyname.sho: $(pdcursesdir)/keyname.c
447
+ $(DYN_BUILD) $(pdcursesdir)/keyname.c
448
+ @SAVE2O@
449
+
450
+ mouse.sho: $(pdcursesdir)/mouse.c
451
+ $(DYN_BUILD) $(pdcursesdir)/mouse.c
452
+ @SAVE2O@
453
+
454
+ move.sho: $(pdcursesdir)/move.c
455
+ $(DYN_BUILD) $(pdcursesdir)/move.c
456
+ @SAVE2O@
457
+
458
+ outopts.sho: $(pdcursesdir)/outopts.c
459
+ $(DYN_BUILD) $(pdcursesdir)/outopts.c
460
+ @SAVE2O@
461
+
462
+ overlay.sho: $(pdcursesdir)/overlay.c
463
+ $(DYN_BUILD) $(pdcursesdir)/overlay.c
464
+ @SAVE2O@
465
+
466
+ pad.sho: $(pdcursesdir)/pad.c
467
+ $(DYN_BUILD) $(pdcursesdir)/pad.c
468
+ @SAVE2O@
469
+
470
+ panel.sho: $(pdcursesdir)/panel.c $(basedir)/panel.h
471
+ $(DYN_BUILD) $(pdcursesdir)/panel.c
472
+ @SAVE2O@
473
+
474
+ printw.sho: $(pdcursesdir)/printw.c
475
+ $(DYN_BUILD) $(pdcursesdir)/printw.c
476
+ @SAVE2O@
477
+
478
+ refresh.sho: $(pdcursesdir)/refresh.c
479
+ $(DYN_BUILD) $(pdcursesdir)/refresh.c
480
+ @SAVE2O@
481
+
482
+ scanw.sho: $(pdcursesdir)/scanw.c
483
+ $(DYN_BUILD) $(pdcursesdir)/scanw.c
484
+ @SAVE2O@
485
+
486
+ scr_dump.sho: $(pdcursesdir)/scr_dump.c
487
+ $(DYN_BUILD) $(pdcursesdir)/scr_dump.c
488
+ @SAVE2O@
489
+
490
+ scroll.sho: $(pdcursesdir)/scroll.c
491
+ $(DYN_BUILD) $(pdcursesdir)/scroll.c
492
+ @SAVE2O@
493
+
494
+ slk.sho: $(pdcursesdir)/slk.c
495
+ $(DYN_BUILD) $(pdcursesdir)/slk.c
496
+ @SAVE2O@
497
+
498
+ termattr.sho: $(pdcursesdir)/termattr.c
499
+ $(DYN_BUILD) $(pdcursesdir)/termattr.c
500
+ @SAVE2O@
501
+
502
+ terminfo.sho: $(pdcursesdir)/terminfo.c
503
+ $(DYN_BUILD) $(pdcursesdir)/terminfo.c
504
+ @SAVE2O@
505
+
506
+ touch.sho: $(pdcursesdir)/touch.c
507
+ $(DYN_BUILD) $(pdcursesdir)/touch.c
508
+ @SAVE2O@
509
+
510
+ util.sho: $(pdcursesdir)/util.c
511
+ $(DYN_BUILD) $(pdcursesdir)/util.c
512
+ @SAVE2O@
513
+
514
+ window.sho: $(pdcursesdir)/window.c
515
+ $(DYN_BUILD) $(pdcursesdir)/window.c
516
+ @SAVE2O@
517
+
518
+ debug.sho: $(pdcursesdir)/debug.c
519
+ $(DYN_BUILD) $(pdcursesdir)/debug.c
520
+ @SAVE2O@
521
+
522
+ pdcclip.sho: $(x11dir)/pdcclip.c
523
+ $(DYN_BUILD) $(x11dir)/pdcclip.c
524
+ @SAVE2O@
525
+
526
+ pdcdisp.sho: $(x11dir)/pdcdisp.c
527
+ $(DYN_BUILD) $(x11dir)/pdcdisp.c
528
+ @SAVE2O@
529
+
530
+ pdcgetsc.sho: $(x11dir)/pdcgetsc.c
531
+ $(DYN_BUILD) $(x11dir)/pdcgetsc.c
532
+ @SAVE2O@
533
+
534
+ pdckbd.sho: $(x11dir)/pdckbd.c
535
+ $(DYN_BUILD) $(x11dir)/pdckbd.c
536
+ @SAVE2O@
537
+
538
+ pdcscrn.sho: $(x11dir)/pdcscrn.c
539
+ $(DYN_BUILD) $(x11dir)/pdcscrn.c
540
+ @SAVE2O@
541
+
542
+ pdcsetsc.sho: $(x11dir)/pdcsetsc.c
543
+ $(DYN_BUILD) $(x11dir)/pdcsetsc.c
544
+ @SAVE2O@
545
+
546
+ pdcutil.sho: $(x11dir)/pdcutil.c
547
+ $(DYN_BUILD) $(x11dir)/pdcutil.c
548
+ @SAVE2O@
549
+
550
+ pdcx11.sho: $(x11dir)/pdcx11.c
551
+ $(DYN_BUILD) $(x11dir)/pdcx11.c
552
+ @SAVE2O@
553
+
554
+ ScrollBox.sho: $(x11dir)/ScrollBox.c
555
+ $(DYN_BUILD) $(x11dir)/ScrollBox.c
556
+ @SAVE2O@
557
+
558
+ sb.sho: $(x11dir)/sb.c
559
+ $(DYN_BUILD) $(x11dir)/sb.c
560
+ @SAVE2O@
561
+
562
+ x11.sho: $(x11dir)/x11.c
563
+ $(DYN_BUILD) $(x11dir)/x11.c
564
+ @SAVE2O@
565
+
566
+ firework: firework.o
567
+ $(LINK) firework.o -o $@ $(LDFLAGS)
568
+
569
+ ozdemo: ozdemo.o
570
+ $(LINK) ozdemo.o -o $@ $(LDFLAGS)
571
+
572
+ newtest: newtest.o
573
+ $(LINK) newtest.o -o $@ $(LDFLAGS)
574
+
575
+ ptest: ptest.o
576
+ $(LINK) ptest.o -o $@ $(LDFLAGS)
577
+
578
+ rain: rain.o
579
+ $(LINK) rain.o -o $@ $(LDFLAGS)
580
+
581
+ testcurs: testcurs.o
582
+ $(LINK) testcurs.o -o $@ $(LDFLAGS)
583
+
584
+ tuidemo: tuidemo.o tui.o
585
+ $(LINK) tui.o tuidemo.o -o $@ $(LDFLAGS)
586
+
587
+ worm: worm.o
588
+ $(LINK) worm.o -o $@ $(LDFLAGS)
589
+
590
+ xmas: xmas.o
591
+ $(LINK) xmas.o -o $@ $(LDFLAGS)
592
+
593
+ firework.o: $(demodir)/firework.c
594
+ $(BUILD) $(demodir)/firework.c
595
+
596
+ ozdemo.o: $(demodir)/ozdemo.c
597
+ $(BUILD) $(demodir)/ozdemo.c
598
+
599
+ newtest.o: $(demodir)/newtest.c
600
+ $(BUILD) $(demodir)/newtest.c
601
+
602
+ ptest.o: $(demodir)/ptest.c $(basedir)/panel.h
603
+ $(BUILD) $(demodir)/ptest.c
604
+
605
+ rain.o: $(demodir)/rain.c
606
+ $(BUILD) $(demodir)/rain.c
607
+
608
+ testcurs.o: $(demodir)/testcurs.c
609
+ $(BUILD) $(demodir)/testcurs.c
610
+
611
+ tui.o: $(demodir)/tui.c $(demodir)/tui.h
612
+ $(BUILD) $(demodir)/tui.c
613
+
614
+ tuidemo.o: $(demodir)/tuidemo.c
615
+ $(BUILD) $(demodir)/tuidemo.c
616
+
617
+ worm.o: $(demodir)/worm.c
618
+ $(BUILD) $(demodir)/worm.c
619
+
620
+ xmas.o: $(demodir)/xmas.c
621
+ $(BUILD) $(demodir)/xmas.c
622
+
623
+ # This section provides for compiling and linking the
624
+ # ncurses test programs.
625
+
626
+ ncurses_testdir = $(HOME)/ncurses-5.6/test
627
+
628
+ NCURSES_TESTS= bs gdc hanoi knight tclock ncurses
629
+
630
+ ncurses_tests: $(NCURSES_TESTS)
631
+
632
+ ncurses_clean:
633
+ -rm -f *.o trace $(NCURSES_TESTS)
634
+
635
+ NCFLAGS = -I. -I$(ncurses_testdir)
636
+
637
+ bs: bs.o $(LIBCURSES)
638
+ $(LINK) bs.o -o $@ $(LDFLAGS)
639
+
640
+ gdc: gdc.o $(LIBCURSES)
641
+ $(LINK) gdc.o -o $@ $(LDFLAGS)
642
+
643
+ hanoi: hanoi.o $(LIBCURSES)
644
+ $(LINK) hanoi.o -o $@ $(LDFLAGS)
645
+
646
+ knight: knight.o $(LIBCURSES)
647
+ $(LINK) knight.o -o $@ $(LDFLAGS)
648
+
649
+ tclock: tclock.o $(LIBCURSES)
650
+ $(LINK) tclock.o -o $@ $(LDFLAGS) -lm
651
+
652
+ view: view.o $(LIBCURSES)
653
+ $(LINK) view.o -o $@ $(LDFLAGS)
654
+
655
+ ncurses: ncurses.o $(LIBCURSES)
656
+ $(LINK) ncurses.o -o $@ $(LDFLAGS)
657
+
658
+ bs.o: $(ncurses_testdir)/bs.c $(PDCURSES_CURSES_H)
659
+ $(BUILD) $(NCFLAGS) $(ncurses_testdir)/bs.c
660
+
661
+ gdc.o: $(ncurses_testdir)/gdc.c $(PDCURSES_CURSES_H)
662
+ $(BUILD) $(NCFLAGS) $(ncurses_testdir)/gdc.c
663
+
664
+ hanoi.o: $(ncurses_testdir)/hanoi.c $(PDCURSES_CURSES_H)
665
+ $(BUILD) $(NCFLAGS) $(ncurses_testdir)/hanoi.c
666
+
667
+ knight.o: $(ncurses_testdir)/knight.c $(PDCURSES_CURSES_H)
668
+ $(BUILD) $(NCFLAGS) $(ncurses_testdir)/knight.c
669
+
670
+ tclock.o: $(ncurses_testdir)/tclock.c $(PDCURSES_CURSES_H)
671
+ $(BUILD) $(NCFLAGS) $(ncurses_testdir)/tclock.c
672
+
673
+ view.o: $(ncurses_testdir)/view.c $(PDCURSES_CURSES_H)
674
+ $(BUILD) $(NCFLAGS) $(ncurses_testdir)/view.c
675
+
676
+ ncurses.o: $(ncurses_testdir)/ncurses.c $(PDCURSES_CURSES_H)
677
+ $(BUILD) $(NCFLAGS) $(ncurses_testdir)/ncurses.c
678
+
679
+ manual:
680
+ cd doc; $(MAKE) $(MFLAGS) $@
681
+
682
+ $(ZIPFILE):
683
+ (cd $(basedir); \
684
+ zip -9y $(ZIPFILE) README.md HISTORY.md IMPLEMNT *.spec *.mif *.def \
685
+ curses.h curspriv.h panel.h term.h pdcurses/README.md \
686
+ pdcurses/*.c \
687
+ demos/README.md demos/*.c demos/*.h \
688
+ dos/README.md dos/*.c dos/*.h dos/*.mak dos/*.lrf \
689
+ os2/README.md os2/*.c os2/*.h os2/*.mak os2/*.lrf \
690
+ sdl1/README.md sdl1/*.c sdl1/*.h sdl1/Make* \
691
+ win32/README.md win32/*.c win32/*.h win32/*.mak win32/*.ico win32/*.rc \
692
+ wingui/README.md wingui/*.c wingui/*.h wingui/*.mak wingui/*.ico wingui/*.rc \
693
+ x11/README.md x11/*.c x11/*.h x11/Makefile.* x11/*.xbm \
694
+ x11/Makefile.in x11/config.h.in x11/configure x11/configure.ac x11/config.guess \
695
+ x11/config.sub x11/xcurses-config.in x11/install-sh x11/aclocal.m4 \
696
+ doc/*.txt doc/manext.c doc/Makefile)
697
+
698
+ zip: $(ZIPFILE)
699
+
700
+ tar:
701
+ (cd $(basedir)/..;rm -f $(PDC_DIR))
702
+ (cd $(basedir)/..;ln -sf $(abs_basedir) $(PDC_DIR))
703
+ (cd $(basedir)/..; `pwd`;ls -l $(PDC_DIR);tar cvf - \
704
+ $(PDC_DIR)/README.md $(PDC_DIR)/HISTORY.md \
705
+ $(PDC_DIR)/IMPLEMNT $(PDC_DIR)/*.spec $(PDC_DIR)/*.mif \
706
+ $(PDC_DIR)/*.def $(PDC_DIR)/x11/Makefile.in $(PDC_DIR)/x11/aclocal.m4 \
707
+ $(PDC_DIR)/x11/config.h.in $(PDC_DIR)/x11/configure \
708
+ $(PDC_DIR)/x11/config.guess $(PDC_DIR)/x11/xcurses-config.in \
709
+ $(PDC_DIR)/x11/config.sub $(PDC_DIR)/x11/configure.ac \
710
+ $(PDC_DIR)/x11/install-sh $(PDC_DIR)/curses.h $(PDC_DIR)/curspriv.h \
711
+ $(PDC_DIR)/panel.h $(PDC_DIR)/term.h \
712
+ $(PDC_DIR)/pdcurses/README.md $(PDC_DIR)/pdcurses/*.c \
713
+ $(PDC_DIR)/demos/README.md $(PDC_DIR)/demos/*.c $(PDC_DIR)/demos/*.h \
714
+ $(PDC_DIR)/doc/*.txt $(PDC_DIR)/dos/README.md $(PDC_DIR)/dos/*.c \
715
+ $(PDC_DIR)/doc/manext.c $(PDC_DIR)/doc/Makefile \
716
+ $(PDC_DIR)/dos/*.h $(PDC_DIR)/dos/*.mak $(PDC_DIR)/dos/*.lrf \
717
+ $(PDC_DIR)/os2/README.md $(PDC_DIR)/os2/*.c $(PDC_DIR)/os2/*.h $(PDC_DIR)/os2/*.mak $(PDC_DIR)/os2/*.lrf \
718
+ $(PDC_DIR)/sdl1/README.md $(PDC_DIR)/sdl1/*.c $(PDC_DIR)/sdl1/*.h $(PDC_DIR)/sdl1/Make* \
719
+ $(PDC_DIR)/win32/README.md $(PDC_DIR)/win32/*.c $(PDC_DIR)/win32/*.h $(PDC_DIR)/win32/*.mak $(PDC_DIR)/win32/*.ico $(PDC_DIR)/win32/*.rc \
720
+ $(PDC_DIR)/wingui/README.md $(PDC_DIR)/wingui/*.c $(PDC_DIR)/wingui/*.h $(PDC_DIR)/wingui/*.mak $(PDC_DIR)/wingui/*.ico $(PDC_DIR)/wingui/*.rc \
721
+ $(PDC_DIR)/x11/README.md $(PDC_DIR)/x11/*.c $(PDC_DIR)/x11/*.xbm $(PDC_DIR)/x11/*.h $(PDC_DIR)/x11/Makefile.* \
722
+ $(PDC_DIR)/x11/debian/rules $(PDC_DIR)/x11/debian/changelog $(PDC_DIR)/x11/debian/compat $(PDC_DIR)/x11/debian/control $(PDC_DIR)/x11/debian/copyright $(PDC_DIR)/x11/debian/rules \
723
+ | gzip -9 > $(TARBALL))
724
+ (cd $(basedir)/..;rm -f $(PDC_DIR))
725
+
726
+ dist: tar
727
+
728
+ rpm: tar $(x11dir)/PDCurses.spec
729
+ cp $(basedir)/../$(PDC_DIR).tar.gz $(RPMTOPDIR)/SOURCES
730
+ -rm $(RPMTOPDIR)/RPMS/*/PDCurses-$(VERDOT)*.rpm
731
+ -rm $(RPMTOPDIR)/RPMS/*/PDCurses-devel-$(VERDOT)*.rpm
732
+ rpmbuild -ba --clean --define "myversion $(VERDOT)" $(x11dir)/PDCurses.spec
733
+ mv $(RPMTOPDIR)/RPMS/*/PDCurses-$(VERDOT)-[0-9]*.rpm `dirname $(RPMTOPDIR)/RPMS/*/PDCurses-$(VERDOT)-[0-9]*.rpm`/`basename $(RPMTOPDIR)/RPMS/*/PDCurses-$(VERDOT)-[0-9]*.rpm .rpm`-$(MYDISTRO).rpm
734
+ mv $(RPMTOPDIR)/RPMS/*/PDCurses-devel-$(VERDOT)-[0-9]*.rpm `dirname $(RPMTOPDIR)/RPMS/*/PDCurses-devel-$(VERDOT)-[0-9]*.rpm`/`basename $(RPMTOPDIR)/RPMS/*/PDCurses-devel-$(VERDOT)-[0-9]*.rpm .rpm`-$(MYDISTRO).rpm
735
+ ls -l $(RPMTOPDIR)/RPMS/*/PDCurses*.rpm
736
+
737
+ rpminstall:
738
+ rpm -Uv $(RPMTOPDIR)/RPMS/*/PDCurses-$(VERDOT)-[0-9]*-$(MYDISTRO).rpm
739
+ rpm -Uv $(RPMTOPDIR)/RPMS/*/PDCurses-devel-$(VERDOT)-[0-9]*-$(MYDISTRO).rpm
740
+
741
+ deb: tar
742
+ -rm -fr tmp
743
+ -mkdir tmp
744
+ (cd tmp; \
745
+ tar zxvf $(abs_basedir)/../$(PDC_DIR).tar.gz; \
746
+ cd $(PDC_DIR)/x11; \
747
+ dpkg-buildpackage -rfakeroot; \
748
+ cd ..; \
749
+ mv pdcurses_$(VERDOT)*.deb `basename pdcurses_$(VERDOT)*.deb .deb`-$(MYDISTRO).deb; \
750
+ ls -l )
751
+
752
+ debinstall:
753
+ (cd tmp; \
754
+ dpkg -i pdcurses_$(VERDOT)*-$(MYDISTRO).deb; )