curses 1.4.4 → 1.4.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (258) hide show
  1. checksums.yaml +4 -4
  2. data/.github/dependabot.yml +6 -0
  3. data/.github/workflows/macos.yml +1 -1
  4. data/.github/workflows/push_gem.yml +48 -0
  5. data/.github/workflows/ubuntu.yml +2 -2
  6. data/.github/workflows/windows.yml +2 -2
  7. data/History.md +23 -0
  8. data/README.md +7 -0
  9. data/curses.gemspec +1 -1
  10. data/ext/curses/curses.c +7 -7
  11. data/sample/colors.rb +6 -1
  12. data/sample/form.rb +1 -1
  13. data/sample/menu.rb +2 -0
  14. metadata +9 -251
  15. data/vendor/PDCurses/.gitignore +0 -47
  16. data/vendor/PDCurses/.travis.yml +0 -49
  17. data/vendor/PDCurses/CMakeLists.txt +0 -68
  18. data/vendor/PDCurses/HISTORY.md +0 -2036
  19. data/vendor/PDCurses/IMPLEMNT.md +0 -327
  20. data/vendor/PDCurses/Makefile +0 -27
  21. data/vendor/PDCurses/README.md +0 -77
  22. data/vendor/PDCurses/acs_defs.h +0 -265
  23. data/vendor/PDCurses/appveyor.yml +0 -218
  24. data/vendor/PDCurses/cmake/README.md +0 -71
  25. data/vendor/PDCurses/cmake/build_dependencies.cmake +0 -178
  26. data/vendor/PDCurses/cmake/build_options.cmake +0 -25
  27. data/vendor/PDCurses/cmake/dll_version.cmake +0 -26
  28. data/vendor/PDCurses/cmake/gen_config_header.cmake +0 -43
  29. data/vendor/PDCurses/cmake/get_version.cmake +0 -17
  30. data/vendor/PDCurses/cmake/make_uninstall.cmake +0 -19
  31. data/vendor/PDCurses/cmake/project_common.cmake +0 -121
  32. data/vendor/PDCurses/cmake/resource.in.cmake +0 -52
  33. data/vendor/PDCurses/cmake/sdl2_ttf/CMakeLists.txt +0 -83
  34. data/vendor/PDCurses/cmake/target_arch.cmake +0 -36
  35. data/vendor/PDCurses/cmake/version.in.cmake +0 -73
  36. data/vendor/PDCurses/cmake/watcom_open_dos16_toolchain.cmake +0 -96
  37. data/vendor/PDCurses/cmake/watcom_open_dos32_toolchain.cmake +0 -106
  38. data/vendor/PDCurses/cmake/watcom_open_os2v2_toolchain.cmake +0 -105
  39. data/vendor/PDCurses/curses.h +0 -1846
  40. data/vendor/PDCurses/curspriv.h +0 -134
  41. data/vendor/PDCurses/demos/README.md +0 -25
  42. data/vendor/PDCurses/demos/firework.c +0 -144
  43. data/vendor/PDCurses/demos/newtest.c +0 -581
  44. data/vendor/PDCurses/demos/ozdemo.c +0 -447
  45. data/vendor/PDCurses/demos/ptest.c +0 -283
  46. data/vendor/PDCurses/demos/rain.c +0 -157
  47. data/vendor/PDCurses/demos/testcurs.c +0 -1607
  48. data/vendor/PDCurses/demos/tui.c +0 -1048
  49. data/vendor/PDCurses/demos/tui.h +0 -65
  50. data/vendor/PDCurses/demos/tuidemo.c +0 -233
  51. data/vendor/PDCurses/demos/version.c +0 -61
  52. data/vendor/PDCurses/demos/worm.c +0 -432
  53. data/vendor/PDCurses/demos/xmas.c +0 -955
  54. data/vendor/PDCurses/dos/CMakeLists.txt +0 -47
  55. data/vendor/PDCurses/dos/Makefile +0 -105
  56. data/vendor/PDCurses/dos/Makefile.bcc +0 -83
  57. data/vendor/PDCurses/dos/Makefile.dmc +0 -257
  58. data/vendor/PDCurses/dos/Makefile.msc +0 -113
  59. data/vendor/PDCurses/dos/Makefile.wcc +0 -107
  60. data/vendor/PDCurses/dos/README.md +0 -51
  61. data/vendor/PDCurses/dos/bccdos.lrf +0 -9
  62. data/vendor/PDCurses/dos/mscdos.lrf +0 -50
  63. data/vendor/PDCurses/dos/pdcclip.c +0 -132
  64. data/vendor/PDCurses/dos/pdcdisp.c +0 -135
  65. data/vendor/PDCurses/dos/pdcdos.h +0 -194
  66. data/vendor/PDCurses/dos/pdcgetsc.c +0 -98
  67. data/vendor/PDCurses/dos/pdckbd.c +0 -513
  68. data/vendor/PDCurses/dos/pdcscrn.c +0 -785
  69. data/vendor/PDCurses/dos/pdcsetsc.c +0 -101
  70. data/vendor/PDCurses/dos/pdcutil.c +0 -212
  71. data/vendor/PDCurses/libobjs.mif +0 -26
  72. data/vendor/PDCurses/makedist.mif +0 -20
  73. data/vendor/PDCurses/man/Makefile +0 -37
  74. data/vendor/PDCurses/man/README.md +0 -21
  75. data/vendor/PDCurses/man/intro.md +0 -361
  76. data/vendor/PDCurses/man/manext.c +0 -119
  77. data/vendor/PDCurses/man/sdl.md +0 -152
  78. data/vendor/PDCurses/man/sdl2.md +0 -58
  79. data/vendor/PDCurses/man/x11.md +0 -407
  80. data/vendor/PDCurses/ncurses/CMakeLists.txt +0 -66
  81. data/vendor/PDCurses/ncurses/README.md +0 -26
  82. data/vendor/PDCurses/ncurses/makefile +0 -29
  83. data/vendor/PDCurses/os2/CMakeLists.txt +0 -41
  84. data/vendor/PDCurses/os2/Makefile +0 -132
  85. data/vendor/PDCurses/os2/Makefile.bcc +0 -90
  86. data/vendor/PDCurses/os2/Makefile.wcc +0 -43
  87. data/vendor/PDCurses/os2/README.md +0 -43
  88. data/vendor/PDCurses/os2/iccos2.lrf +0 -50
  89. data/vendor/PDCurses/os2/iccos2.mak +0 -256
  90. data/vendor/PDCurses/os2/pdcclip.c +0 -188
  91. data/vendor/PDCurses/os2/pdcdisp.c +0 -93
  92. data/vendor/PDCurses/os2/pdcgetsc.c +0 -89
  93. data/vendor/PDCurses/os2/pdckbd.c +0 -521
  94. data/vendor/PDCurses/os2/pdcos2.h +0 -55
  95. data/vendor/PDCurses/os2/pdcscrn.c +0 -449
  96. data/vendor/PDCurses/os2/pdcsetsc.c +0 -112
  97. data/vendor/PDCurses/os2/pdcutil.c +0 -52
  98. data/vendor/PDCurses/panel.h +0 -56
  99. data/vendor/PDCurses/pdcurses/README.md +0 -25
  100. data/vendor/PDCurses/pdcurses/addch.c +0 -693
  101. data/vendor/PDCurses/pdcurses/addchstr.c +0 -245
  102. data/vendor/PDCurses/pdcurses/addstr.c +0 -240
  103. data/vendor/PDCurses/pdcurses/attr.c +0 -359
  104. data/vendor/PDCurses/pdcurses/beep.c +0 -68
  105. data/vendor/PDCurses/pdcurses/bkgd.c +0 -223
  106. data/vendor/PDCurses/pdcurses/border.c +0 -411
  107. data/vendor/PDCurses/pdcurses/clear.c +0 -159
  108. data/vendor/PDCurses/pdcurses/color.c +0 -298
  109. data/vendor/PDCurses/pdcurses/debug.c +0 -109
  110. data/vendor/PDCurses/pdcurses/delch.c +0 -96
  111. data/vendor/PDCurses/pdcurses/deleteln.c +0 -211
  112. data/vendor/PDCurses/pdcurses/deprec.c +0 -27
  113. data/vendor/PDCurses/pdcurses/getch.c +0 -417
  114. data/vendor/PDCurses/pdcurses/getstr.c +0 -474
  115. data/vendor/PDCurses/pdcurses/getyx.c +0 -139
  116. data/vendor/PDCurses/pdcurses/inch.c +0 -127
  117. data/vendor/PDCurses/pdcurses/inchstr.c +0 -214
  118. data/vendor/PDCurses/pdcurses/initscr.c +0 -367
  119. data/vendor/PDCurses/pdcurses/inopts.c +0 -324
  120. data/vendor/PDCurses/pdcurses/insch.c +0 -271
  121. data/vendor/PDCurses/pdcurses/insstr.c +0 -264
  122. data/vendor/PDCurses/pdcurses/instr.c +0 -246
  123. data/vendor/PDCurses/pdcurses/kernel.c +0 -259
  124. data/vendor/PDCurses/pdcurses/keyname.c +0 -157
  125. data/vendor/PDCurses/pdcurses/mouse.c +0 -438
  126. data/vendor/PDCurses/pdcurses/move.c +0 -57
  127. data/vendor/PDCurses/pdcurses/outopts.c +0 -159
  128. data/vendor/PDCurses/pdcurses/overlay.c +0 -214
  129. data/vendor/PDCurses/pdcurses/pad.c +0 -260
  130. data/vendor/PDCurses/pdcurses/panel.c +0 -633
  131. data/vendor/PDCurses/pdcurses/printw.c +0 -126
  132. data/vendor/PDCurses/pdcurses/refresh.c +0 -279
  133. data/vendor/PDCurses/pdcurses/scanw.c +0 -578
  134. data/vendor/PDCurses/pdcurses/scr_dump.c +0 -213
  135. data/vendor/PDCurses/pdcurses/scroll.c +0 -101
  136. data/vendor/PDCurses/pdcurses/slk.c +0 -591
  137. data/vendor/PDCurses/pdcurses/termattr.c +0 -182
  138. data/vendor/PDCurses/pdcurses/terminfo.c +0 -217
  139. data/vendor/PDCurses/pdcurses/touch.c +0 -163
  140. data/vendor/PDCurses/pdcurses/util.c +0 -312
  141. data/vendor/PDCurses/pdcurses/window.c +0 -569
  142. data/vendor/PDCurses/sdl1/Makefile +0 -129
  143. data/vendor/PDCurses/sdl1/Makefile.mng +0 -110
  144. data/vendor/PDCurses/sdl1/README.md +0 -31
  145. data/vendor/PDCurses/sdl1/deffont.h +0 -385
  146. data/vendor/PDCurses/sdl1/deficon.h +0 -23
  147. data/vendor/PDCurses/sdl1/pdcclip.c +0 -131
  148. data/vendor/PDCurses/sdl1/pdcdisp.c +0 -373
  149. data/vendor/PDCurses/sdl1/pdcgetsc.c +0 -30
  150. data/vendor/PDCurses/sdl1/pdckbd.c +0 -405
  151. data/vendor/PDCurses/sdl1/pdcscrn.c +0 -414
  152. data/vendor/PDCurses/sdl1/pdcsdl.h +0 -31
  153. data/vendor/PDCurses/sdl1/pdcsetsc.c +0 -64
  154. data/vendor/PDCurses/sdl1/pdcutil.c +0 -40
  155. data/vendor/PDCurses/sdl1/sdltest.c +0 -79
  156. data/vendor/PDCurses/sdl2/CMakeLists.txt +0 -76
  157. data/vendor/PDCurses/sdl2/Makefile +0 -135
  158. data/vendor/PDCurses/sdl2/Makefile.vc +0 -164
  159. data/vendor/PDCurses/sdl2/README.md +0 -34
  160. data/vendor/PDCurses/sdl2/deffont.h +0 -385
  161. data/vendor/PDCurses/sdl2/deficon.h +0 -23
  162. data/vendor/PDCurses/sdl2/pdcclip.c +0 -93
  163. data/vendor/PDCurses/sdl2/pdcdisp.c +0 -534
  164. data/vendor/PDCurses/sdl2/pdcgetsc.c +0 -30
  165. data/vendor/PDCurses/sdl2/pdckbd.c +0 -480
  166. data/vendor/PDCurses/sdl2/pdcscrn.c +0 -443
  167. data/vendor/PDCurses/sdl2/pdcsdl.h +0 -33
  168. data/vendor/PDCurses/sdl2/pdcsetsc.c +0 -67
  169. data/vendor/PDCurses/sdl2/pdcutil.c +0 -39
  170. data/vendor/PDCurses/sdl2/sdltest.c +0 -81
  171. data/vendor/PDCurses/term.h +0 -48
  172. data/vendor/PDCurses/version.mif +0 -7
  173. data/vendor/PDCurses/vt/CMakeLists.txt +0 -28
  174. data/vendor/PDCurses/vt/Makefile +0 -135
  175. data/vendor/PDCurses/vt/Makefile.bcc +0 -111
  176. data/vendor/PDCurses/vt/Makefile.dmc +0 -258
  177. data/vendor/PDCurses/vt/Makefile.vc +0 -144
  178. data/vendor/PDCurses/vt/Makefile.wcc +0 -107
  179. data/vendor/PDCurses/vt/README.md +0 -64
  180. data/vendor/PDCurses/vt/pdcclip.c +0 -20
  181. data/vendor/PDCurses/vt/pdcdisp.c +0 -284
  182. data/vendor/PDCurses/vt/pdcgetsc.c +0 -27
  183. data/vendor/PDCurses/vt/pdckbd.c +0 -394
  184. data/vendor/PDCurses/vt/pdcscrn.c +0 -434
  185. data/vendor/PDCurses/vt/pdcsetsc.c +0 -45
  186. data/vendor/PDCurses/vt/pdcutil.c +0 -43
  187. data/vendor/PDCurses/vt/pdcvt.h +0 -16
  188. data/vendor/PDCurses/watcom.mif +0 -68
  189. data/vendor/PDCurses/wincon/CMakeLists.txt +0 -27
  190. data/vendor/PDCurses/wincon/Makefile.bcc +0 -88
  191. data/vendor/PDCurses/wincon/Makefile.dmc +0 -256
  192. data/vendor/PDCurses/wincon/Makefile.lcc +0 -273
  193. data/vendor/PDCurses/wincon/Makefile.mng +0 -176
  194. data/vendor/PDCurses/wincon/Makefile.vc +0 -144
  195. data/vendor/PDCurses/wincon/Makefile.wcc +0 -51
  196. data/vendor/PDCurses/wincon/README.md +0 -85
  197. data/vendor/PDCurses/wincon/pdcclip.c +0 -174
  198. data/vendor/PDCurses/wincon/pdcdisp.c +0 -143
  199. data/vendor/PDCurses/wincon/pdcgetsc.c +0 -55
  200. data/vendor/PDCurses/wincon/pdckbd.c +0 -786
  201. data/vendor/PDCurses/wincon/pdcscrn.c +0 -717
  202. data/vendor/PDCurses/wincon/pdcsetsc.c +0 -91
  203. data/vendor/PDCurses/wincon/pdcurses.ico +0 -0
  204. data/vendor/PDCurses/wincon/pdcurses.rc +0 -28
  205. data/vendor/PDCurses/wincon/pdcutil.c +0 -41
  206. data/vendor/PDCurses/wincon/pdcwin.h +0 -31
  207. data/vendor/PDCurses/wingui/CMakeLists.txt +0 -27
  208. data/vendor/PDCurses/wingui/Makefile.bcc +0 -85
  209. data/vendor/PDCurses/wingui/Makefile.dmc +0 -259
  210. data/vendor/PDCurses/wingui/Makefile.lcc +0 -273
  211. data/vendor/PDCurses/wingui/Makefile.mng +0 -171
  212. data/vendor/PDCurses/wingui/Makefile.vc +0 -144
  213. data/vendor/PDCurses/wingui/Makefile.wcc +0 -51
  214. data/vendor/PDCurses/wingui/README.md +0 -93
  215. data/vendor/PDCurses/wingui/pdcclip.c +0 -174
  216. data/vendor/PDCurses/wingui/pdcdisp.c +0 -718
  217. data/vendor/PDCurses/wingui/pdcgetsc.c +0 -30
  218. data/vendor/PDCurses/wingui/pdckbd.c +0 -143
  219. data/vendor/PDCurses/wingui/pdcscrn.c +0 -2797
  220. data/vendor/PDCurses/wingui/pdcsetsc.c +0 -89
  221. data/vendor/PDCurses/wingui/pdcurses.ico +0 -0
  222. data/vendor/PDCurses/wingui/pdcurses.rc +0 -28
  223. data/vendor/PDCurses/wingui/pdcutil.c +0 -61
  224. data/vendor/PDCurses/wingui/pdcwin.h +0 -122
  225. data/vendor/PDCurses/x11/Makefile.in +0 -754
  226. data/vendor/PDCurses/x11/PDCurses.spec +0 -82
  227. data/vendor/PDCurses/x11/README.md +0 -62
  228. data/vendor/PDCurses/x11/ScrollBox.c +0 -319
  229. data/vendor/PDCurses/x11/ScrollBox.h +0 -51
  230. data/vendor/PDCurses/x11/ScrollBoxP.h +0 -70
  231. data/vendor/PDCurses/x11/aclocal.m4 +0 -994
  232. data/vendor/PDCurses/x11/big_icon.xbm +0 -46
  233. data/vendor/PDCurses/x11/compose.h +0 -201
  234. data/vendor/PDCurses/x11/config.guess +0 -1500
  235. data/vendor/PDCurses/x11/config.h.in +0 -100
  236. data/vendor/PDCurses/x11/config.sub +0 -1616
  237. data/vendor/PDCurses/x11/configure +0 -6700
  238. data/vendor/PDCurses/x11/configure.ac +0 -295
  239. data/vendor/PDCurses/x11/debian/changelog +0 -6
  240. data/vendor/PDCurses/x11/debian/compat +0 -1
  241. data/vendor/PDCurses/x11/debian/control +0 -11
  242. data/vendor/PDCurses/x11/debian/copyright +0 -27
  243. data/vendor/PDCurses/x11/debian/rules +0 -98
  244. data/vendor/PDCurses/x11/install-sh +0 -253
  245. data/vendor/PDCurses/x11/little_icon.xbm +0 -14
  246. data/vendor/PDCurses/x11/ncurses_cfg.h +0 -45
  247. data/vendor/PDCurses/x11/pdcclip.c +0 -173
  248. data/vendor/PDCurses/x11/pdcdisp.c +0 -85
  249. data/vendor/PDCurses/x11/pdcgetsc.c +0 -28
  250. data/vendor/PDCurses/x11/pdckbd.c +0 -104
  251. data/vendor/PDCurses/x11/pdcscrn.c +0 -258
  252. data/vendor/PDCurses/x11/pdcsetsc.c +0 -95
  253. data/vendor/PDCurses/x11/pdcutil.c +0 -52
  254. data/vendor/PDCurses/x11/pdcx11.c +0 -316
  255. data/vendor/PDCurses/x11/pdcx11.h +0 -191
  256. data/vendor/PDCurses/x11/sb.c +0 -155
  257. data/vendor/PDCurses/x11/x11.c +0 -3686
  258. data/vendor/PDCurses/x11/xcurses-config.in +0 -81
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d8f509004a715c7c6215130a814987b82b964d9dcf3606e6a289e1666b3a5577
4
- data.tar.gz: 0e54526e4d59b8e7d4b154403d71e7bae99db4cfe0dea25ce381f737f265bfef
3
+ metadata.gz: 824110d81838895e47a1e9d7baa26934e859a0a1d05ed14c8e56ccc0110b6cfa
4
+ data.tar.gz: d00f22a7ef48b8fba6e51690a944605c03076211ce57e09a5427780e8f1f5e47
5
5
  SHA512:
6
- metadata.gz: 168a0e62efe441de9fa4f737c4f83085f48f4c9330a4f9d2f0eb98beed3bb1a39ec68beb3ee59fa4ba78000c6805a51e039c4c99a8540d7e84b805620749ba17
7
- data.tar.gz: deed017c806a7cc9fddb233ad58d52c545473f578238fb514bed2af63003e2ec74488edfdb0c281ed255e47d16b487ce0a74d0d2e24b43a9c3ea4a00f900e2f2
6
+ metadata.gz: 63baa964aece83a9aef9ca28cac34f54f40c65afc7cdf5a9d74c6543fecfc97fbc184b0f373fe896dbc3627a12492e57d79e42cad51902da433563d0fa01ff6f
7
+ data.tar.gz: 6af6f9400298193f22c1e05a5ab6bd97b2971590132d142e66bf2db9194d0984805ba944a64689e9932a8a0efbe7e20cbb388e9616bf2a90b0abceabba2417ab
@@ -0,0 +1,6 @@
1
+ version: 2
2
+ updates:
3
+ - package-ecosystem: 'github-actions'
4
+ directory: '/'
5
+ schedule:
6
+ interval: 'weekly'
@@ -6,7 +6,7 @@ jobs:
6
6
  build:
7
7
  runs-on: macos-latest
8
8
  steps:
9
- - uses: actions/checkout@v2
9
+ - uses: actions/checkout@v4
10
10
  - name: Install dependencies
11
11
  run: |
12
12
  gem install bundler --no-document
@@ -0,0 +1,48 @@
1
+ name: Publish gem to rubygems.org
2
+
3
+ on:
4
+ push:
5
+ tags:
6
+ - 'v*'
7
+
8
+ permissions:
9
+ contents: read
10
+
11
+ jobs:
12
+ push:
13
+ if: github.repository == 'ruby/curses'
14
+ runs-on: ubuntu-latest
15
+
16
+ environment:
17
+ name: rubygems.org
18
+ url: https://rubygems.org/gems/curses
19
+
20
+ permissions:
21
+ contents: write
22
+ id-token: write
23
+
24
+ steps:
25
+ # Set up
26
+ - name: Harden Runner
27
+ uses: step-security/harden-runner@f086349bfa2bd1361f7909c78558e816508cdc10 # v2.8.0
28
+ with:
29
+ egress-policy: audit
30
+
31
+ - uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
32
+
33
+ - name: Set up Ruby
34
+ uses: ruby/setup-ruby@cacc9f1c0b3f4eb8a16a6bb0ed10897b43b9de49 # v1.176.0
35
+ with:
36
+ bundler-cache: true
37
+ ruby-version: ruby
38
+
39
+ # Release
40
+ - name: Publish to RubyGems
41
+ uses: rubygems/release-gem@612653d273a73bdae1df8453e090060bb4db5f31 # v1
42
+
43
+ - name: Create GitHub release
44
+ run: |
45
+ tag_name="$(git describe --tags --abbrev=0)"
46
+ gh release create "${tag_name}" --verify-tag --draft --generate-notes
47
+ env:
48
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -6,10 +6,10 @@ jobs:
6
6
  test:
7
7
  strategy:
8
8
  matrix:
9
- ruby: [ head, 3.1, 2.7, 2.6 ]
9
+ ruby: [ head, 3.3, 3.2, 3.1, 3.0 ]
10
10
  runs-on: ubuntu-latest
11
11
  steps:
12
- - uses: actions/checkout@v2
12
+ - uses: actions/checkout@v4
13
13
  - uses: ruby/setup-ruby@v1
14
14
  with:
15
15
  ruby-version: ${{ matrix.ruby }}
@@ -7,9 +7,9 @@ jobs:
7
7
  runs-on: windows-latest
8
8
  strategy:
9
9
  matrix:
10
- ruby: [ 'mingw', 'mswin', '2.7', '2.6' ]
10
+ ruby: [ 'mingw', 'mswin', '3.3' ]
11
11
  steps:
12
- - uses: actions/checkout@v2
12
+ - uses: actions/checkout@v4
13
13
  with:
14
14
  submodules: true
15
15
  - name: Set up Ruby
data/History.md CHANGED
@@ -1,3 +1,26 @@
1
+ This file is no longer being updated after version 1.4.5.
2
+ For changes since version 1.4.5, see <URL:https://github.com/ruby/curses/releases>.
3
+
4
+ ### 1.4.5 / 2024-04-24
5
+
6
+ New features:
7
+
8
+ * Add documentation of TERM.
9
+ Issue #80 by rubyFeedback.
10
+ * Add MacOS directives to install curses with menu support
11
+ Pull request #84 by AlexB52.
12
+
13
+ Bug fixes:
14
+
15
+ * Add x permissoin to samples.
16
+ Pull request #71 by dvarrui.
17
+ * Supress gem installation warning.
18
+ Issue #77 by rubyFeedback.
19
+ * Ignore Curses::UnknownCommandError.
20
+ Issue #79 by rubyFeedback.
21
+ * Fix installation problem on macOS (Apple Silicon).
22
+ Issue #85 by pusewicz.
23
+
1
24
  ### 1.4.4 / 2022-02-03
2
25
 
3
26
  Bug fixes:
data/README.md CHANGED
@@ -37,6 +37,13 @@ However, if you prefer ncurses to PDCurses, specify the following option:
37
37
 
38
38
  On mingw, you need DevKit to compile the extension library.
39
39
 
40
+ On MacOS, `ncurses` menu isn't natively supported. You can install the gem with menu support using homebrew:
41
+
42
+ brew install ncurses
43
+ gem install curses -- --use-system-libraries --with-ncurses-dir=/usr/local/opt/ncurses
44
+
45
+ _with `/usr/local/opt/ncurses` the path where homebrew installed ncurses on your machine_
46
+
40
47
  ## Documentation
41
48
 
42
49
  See [https://www.rubydoc.info/gems/curses](https://www.rubydoc.info/gems/curses).
data/curses.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new { |s|
2
2
  s.name = "curses"
3
- s.version = "1.4.4"
3
+ s.version = "1.4.6"
4
4
  s.author = ["Shugo Maeda", 'Eric Hodel']
5
5
  s.email = ["shugo@ruby-lang.org", 'drbrain@segment7.net']
6
6
  s.homepage = "https://github.com/ruby/curses"
data/ext/curses/curses.c CHANGED
@@ -3252,7 +3252,7 @@ item_opts_off_m(VALUE obj, VALUE opts)
3252
3252
  * Get the current option bits of the item.
3253
3253
  */
3254
3254
  static VALUE
3255
- item_opts_m(VALUE obj, VALUE opts)
3255
+ item_opts_m(VALUE obj)
3256
3256
  {
3257
3257
  struct itemdata *itemp;
3258
3258
 
@@ -3701,7 +3701,7 @@ menu_set_fore(VALUE obj, VALUE attr)
3701
3701
  * This is the highlight used for selected menu items.
3702
3702
  */
3703
3703
  static VALUE
3704
- menu_get_fore(VALUE obj, VALUE attr)
3704
+ menu_get_fore(VALUE obj)
3705
3705
  {
3706
3706
  struct menudata *menup;
3707
3707
 
@@ -3738,7 +3738,7 @@ menu_set_back(VALUE obj, VALUE attr)
3738
3738
  * Get the background attribute of menu.
3739
3739
  */
3740
3740
  static VALUE
3741
- menu_get_back(VALUE obj, VALUE attr)
3741
+ menu_get_back(VALUE obj)
3742
3742
  {
3743
3743
  struct menudata *menup;
3744
3744
 
@@ -3835,7 +3835,7 @@ menu_opts_off_m(VALUE obj, VALUE opts)
3835
3835
  * Get the current option bits of the menu.
3836
3836
  */
3837
3837
  static VALUE
3838
- menu_opts_m(VALUE obj, VALUE opts)
3838
+ menu_opts_m(VALUE obj)
3839
3839
  {
3840
3840
  struct menudata *menup;
3841
3841
 
@@ -4800,11 +4800,11 @@ curses_save_key_modifiers(VALUE obj, VALUE flag)
4800
4800
  * == Examples
4801
4801
  *
4802
4802
  * * hello.rb
4803
- * :include: sample/hello.rb
4803
+ * :include: ../../sample/hello.rb
4804
4804
  *
4805
4805
  *
4806
4806
  * * rain.rb
4807
- * :include: sample/rain.rb
4807
+ * :include: ../../sample/rain.rb
4808
4808
  *
4809
4809
  *
4810
4810
  */
@@ -4844,7 +4844,7 @@ Init_curses(void)
4844
4844
  * == Example
4845
4845
  *
4846
4846
  * * mouse.rb
4847
- * :include: sample/mouse.rb
4847
+ * :include: ../../sample/mouse.rb
4848
4848
  *
4849
4849
  */
4850
4850
  cMouseEvent = rb_define_class_under(mCurses,"MouseEvent",rb_cObject);
data/sample/colors.rb CHANGED
@@ -1,6 +1,11 @@
1
+ #!/usr/bin/env ruby
2
+
1
3
  require "curses"
2
4
  include Curses
3
5
 
6
+ # The TERM environment variable should be set to xterm-256color etc. to
7
+ # use 256 colors. Curses.colors returns the color numbers of the terminal.
8
+
4
9
  begin
5
10
  init_screen
6
11
 
@@ -23,4 +28,4 @@ begin
23
28
 
24
29
  ensure
25
30
  close_screen
26
- end
31
+ end
data/sample/form.rb CHANGED
@@ -45,7 +45,7 @@ while ch = Curses.get_char
45
45
  else
46
46
  form.driver(ch)
47
47
  end
48
- rescue Curses::RequestDeniedError
48
+ rescue Curses::RequestDeniedError, Curses::UnknownCommandError
49
49
  end
50
50
  end
51
51
 
data/sample/menu.rb CHANGED
@@ -1,3 +1,5 @@
1
+ #!/usr/bin/env ruby
2
+
1
3
  require "curses"
2
4
 
3
5
  Curses.init_screen
metadata CHANGED
@@ -1,15 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: curses
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.4
4
+ version: 1.4.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shugo Maeda
8
8
  - Eric Hodel
9
- autorequire:
9
+ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2022-02-02 00:00:00.000000000 Z
12
+ date: 2024-06-05 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler
@@ -39,7 +39,7 @@ dependencies:
39
39
  - - ">="
40
40
  - !ruby/object:Gem::Version
41
41
  version: '0'
42
- description:
42
+ description:
43
43
  email:
44
44
  - shugo@ruby-lang.org
45
45
  - drbrain@segment7.net
@@ -48,7 +48,9 @@ extensions:
48
48
  - ext/curses/extconf.rb
49
49
  extra_rdoc_files: []
50
50
  files:
51
+ - ".github/dependabot.yml"
51
52
  - ".github/workflows/macos.yml"
53
+ - ".github/workflows/push_gem.yml"
52
54
  - ".github/workflows/ubuntu.yml"
53
55
  - ".github/workflows/windows.yml"
54
56
  - ".gitignore"
@@ -75,256 +77,12 @@ files:
75
77
  - sample/rain.rb
76
78
  - sample/view.rb
77
79
  - sample/view2.rb
78
- - vendor/PDCurses/.gitignore
79
- - vendor/PDCurses/.travis.yml
80
- - vendor/PDCurses/CMakeLists.txt
81
- - vendor/PDCurses/HISTORY.md
82
- - vendor/PDCurses/IMPLEMNT.md
83
- - vendor/PDCurses/Makefile
84
- - vendor/PDCurses/README.md
85
- - vendor/PDCurses/acs_defs.h
86
- - vendor/PDCurses/appveyor.yml
87
- - vendor/PDCurses/cmake/README.md
88
- - vendor/PDCurses/cmake/build_dependencies.cmake
89
- - vendor/PDCurses/cmake/build_options.cmake
90
- - vendor/PDCurses/cmake/dll_version.cmake
91
- - vendor/PDCurses/cmake/gen_config_header.cmake
92
- - vendor/PDCurses/cmake/get_version.cmake
93
- - vendor/PDCurses/cmake/make_uninstall.cmake
94
- - vendor/PDCurses/cmake/project_common.cmake
95
- - vendor/PDCurses/cmake/resource.in.cmake
96
- - vendor/PDCurses/cmake/sdl2_ttf/CMakeLists.txt
97
- - vendor/PDCurses/cmake/target_arch.cmake
98
- - vendor/PDCurses/cmake/version.in.cmake
99
- - vendor/PDCurses/cmake/watcom_open_dos16_toolchain.cmake
100
- - vendor/PDCurses/cmake/watcom_open_dos32_toolchain.cmake
101
- - vendor/PDCurses/cmake/watcom_open_os2v2_toolchain.cmake
102
- - vendor/PDCurses/curses.h
103
- - vendor/PDCurses/curspriv.h
104
- - vendor/PDCurses/demos/README.md
105
- - vendor/PDCurses/demos/firework.c
106
- - vendor/PDCurses/demos/newtest.c
107
- - vendor/PDCurses/demos/ozdemo.c
108
- - vendor/PDCurses/demos/ptest.c
109
- - vendor/PDCurses/demos/rain.c
110
- - vendor/PDCurses/demos/testcurs.c
111
- - vendor/PDCurses/demos/tui.c
112
- - vendor/PDCurses/demos/tui.h
113
- - vendor/PDCurses/demos/tuidemo.c
114
- - vendor/PDCurses/demos/version.c
115
- - vendor/PDCurses/demos/worm.c
116
- - vendor/PDCurses/demos/xmas.c
117
- - vendor/PDCurses/dos/CMakeLists.txt
118
- - vendor/PDCurses/dos/Makefile
119
- - vendor/PDCurses/dos/Makefile.bcc
120
- - vendor/PDCurses/dos/Makefile.dmc
121
- - vendor/PDCurses/dos/Makefile.msc
122
- - vendor/PDCurses/dos/Makefile.wcc
123
- - vendor/PDCurses/dos/README.md
124
- - vendor/PDCurses/dos/bccdos.lrf
125
- - vendor/PDCurses/dos/mscdos.lrf
126
- - vendor/PDCurses/dos/pdcclip.c
127
- - vendor/PDCurses/dos/pdcdisp.c
128
- - vendor/PDCurses/dos/pdcdos.h
129
- - vendor/PDCurses/dos/pdcgetsc.c
130
- - vendor/PDCurses/dos/pdckbd.c
131
- - vendor/PDCurses/dos/pdcscrn.c
132
- - vendor/PDCurses/dos/pdcsetsc.c
133
- - vendor/PDCurses/dos/pdcutil.c
134
- - vendor/PDCurses/libobjs.mif
135
- - vendor/PDCurses/makedist.mif
136
- - vendor/PDCurses/man/Makefile
137
- - vendor/PDCurses/man/README.md
138
- - vendor/PDCurses/man/intro.md
139
- - vendor/PDCurses/man/manext.c
140
- - vendor/PDCurses/man/sdl.md
141
- - vendor/PDCurses/man/sdl2.md
142
- - vendor/PDCurses/man/x11.md
143
- - vendor/PDCurses/ncurses/CMakeLists.txt
144
- - vendor/PDCurses/ncurses/README.md
145
- - vendor/PDCurses/ncurses/makefile
146
- - vendor/PDCurses/os2/CMakeLists.txt
147
- - vendor/PDCurses/os2/Makefile
148
- - vendor/PDCurses/os2/Makefile.bcc
149
- - vendor/PDCurses/os2/Makefile.wcc
150
- - vendor/PDCurses/os2/README.md
151
- - vendor/PDCurses/os2/iccos2.lrf
152
- - vendor/PDCurses/os2/iccos2.mak
153
- - vendor/PDCurses/os2/pdcclip.c
154
- - vendor/PDCurses/os2/pdcdisp.c
155
- - vendor/PDCurses/os2/pdcgetsc.c
156
- - vendor/PDCurses/os2/pdckbd.c
157
- - vendor/PDCurses/os2/pdcos2.h
158
- - vendor/PDCurses/os2/pdcscrn.c
159
- - vendor/PDCurses/os2/pdcsetsc.c
160
- - vendor/PDCurses/os2/pdcutil.c
161
- - vendor/PDCurses/panel.h
162
- - vendor/PDCurses/pdcurses/README.md
163
- - vendor/PDCurses/pdcurses/addch.c
164
- - vendor/PDCurses/pdcurses/addchstr.c
165
- - vendor/PDCurses/pdcurses/addstr.c
166
- - vendor/PDCurses/pdcurses/attr.c
167
- - vendor/PDCurses/pdcurses/beep.c
168
- - vendor/PDCurses/pdcurses/bkgd.c
169
- - vendor/PDCurses/pdcurses/border.c
170
- - vendor/PDCurses/pdcurses/clear.c
171
- - vendor/PDCurses/pdcurses/color.c
172
- - vendor/PDCurses/pdcurses/debug.c
173
- - vendor/PDCurses/pdcurses/delch.c
174
- - vendor/PDCurses/pdcurses/deleteln.c
175
- - vendor/PDCurses/pdcurses/deprec.c
176
- - vendor/PDCurses/pdcurses/getch.c
177
- - vendor/PDCurses/pdcurses/getstr.c
178
- - vendor/PDCurses/pdcurses/getyx.c
179
- - vendor/PDCurses/pdcurses/inch.c
180
- - vendor/PDCurses/pdcurses/inchstr.c
181
- - vendor/PDCurses/pdcurses/initscr.c
182
- - vendor/PDCurses/pdcurses/inopts.c
183
- - vendor/PDCurses/pdcurses/insch.c
184
- - vendor/PDCurses/pdcurses/insstr.c
185
- - vendor/PDCurses/pdcurses/instr.c
186
- - vendor/PDCurses/pdcurses/kernel.c
187
- - vendor/PDCurses/pdcurses/keyname.c
188
- - vendor/PDCurses/pdcurses/mouse.c
189
- - vendor/PDCurses/pdcurses/move.c
190
- - vendor/PDCurses/pdcurses/outopts.c
191
- - vendor/PDCurses/pdcurses/overlay.c
192
- - vendor/PDCurses/pdcurses/pad.c
193
- - vendor/PDCurses/pdcurses/panel.c
194
- - vendor/PDCurses/pdcurses/printw.c
195
- - vendor/PDCurses/pdcurses/refresh.c
196
- - vendor/PDCurses/pdcurses/scanw.c
197
- - vendor/PDCurses/pdcurses/scr_dump.c
198
- - vendor/PDCurses/pdcurses/scroll.c
199
- - vendor/PDCurses/pdcurses/slk.c
200
- - vendor/PDCurses/pdcurses/termattr.c
201
- - vendor/PDCurses/pdcurses/terminfo.c
202
- - vendor/PDCurses/pdcurses/touch.c
203
- - vendor/PDCurses/pdcurses/util.c
204
- - vendor/PDCurses/pdcurses/window.c
205
- - vendor/PDCurses/sdl1/Makefile
206
- - vendor/PDCurses/sdl1/Makefile.mng
207
- - vendor/PDCurses/sdl1/README.md
208
- - vendor/PDCurses/sdl1/deffont.h
209
- - vendor/PDCurses/sdl1/deficon.h
210
- - vendor/PDCurses/sdl1/pdcclip.c
211
- - vendor/PDCurses/sdl1/pdcdisp.c
212
- - vendor/PDCurses/sdl1/pdcgetsc.c
213
- - vendor/PDCurses/sdl1/pdckbd.c
214
- - vendor/PDCurses/sdl1/pdcscrn.c
215
- - vendor/PDCurses/sdl1/pdcsdl.h
216
- - vendor/PDCurses/sdl1/pdcsetsc.c
217
- - vendor/PDCurses/sdl1/pdcutil.c
218
- - vendor/PDCurses/sdl1/sdltest.c
219
- - vendor/PDCurses/sdl2/CMakeLists.txt
220
- - vendor/PDCurses/sdl2/Makefile
221
- - vendor/PDCurses/sdl2/Makefile.vc
222
- - vendor/PDCurses/sdl2/README.md
223
- - vendor/PDCurses/sdl2/deffont.h
224
- - vendor/PDCurses/sdl2/deficon.h
225
- - vendor/PDCurses/sdl2/pdcclip.c
226
- - vendor/PDCurses/sdl2/pdcdisp.c
227
- - vendor/PDCurses/sdl2/pdcgetsc.c
228
- - vendor/PDCurses/sdl2/pdckbd.c
229
- - vendor/PDCurses/sdl2/pdcscrn.c
230
- - vendor/PDCurses/sdl2/pdcsdl.h
231
- - vendor/PDCurses/sdl2/pdcsetsc.c
232
- - vendor/PDCurses/sdl2/pdcutil.c
233
- - vendor/PDCurses/sdl2/sdltest.c
234
- - vendor/PDCurses/term.h
235
- - vendor/PDCurses/version.mif
236
- - vendor/PDCurses/vt/CMakeLists.txt
237
- - vendor/PDCurses/vt/Makefile
238
- - vendor/PDCurses/vt/Makefile.bcc
239
- - vendor/PDCurses/vt/Makefile.dmc
240
- - vendor/PDCurses/vt/Makefile.vc
241
- - vendor/PDCurses/vt/Makefile.wcc
242
- - vendor/PDCurses/vt/README.md
243
- - vendor/PDCurses/vt/pdcclip.c
244
- - vendor/PDCurses/vt/pdcdisp.c
245
- - vendor/PDCurses/vt/pdcgetsc.c
246
- - vendor/PDCurses/vt/pdckbd.c
247
- - vendor/PDCurses/vt/pdcscrn.c
248
- - vendor/PDCurses/vt/pdcsetsc.c
249
- - vendor/PDCurses/vt/pdcutil.c
250
- - vendor/PDCurses/vt/pdcvt.h
251
- - vendor/PDCurses/watcom.mif
252
- - vendor/PDCurses/wincon/CMakeLists.txt
253
- - vendor/PDCurses/wincon/Makefile.bcc
254
- - vendor/PDCurses/wincon/Makefile.dmc
255
- - vendor/PDCurses/wincon/Makefile.lcc
256
- - vendor/PDCurses/wincon/Makefile.mng
257
- - vendor/PDCurses/wincon/Makefile.vc
258
- - vendor/PDCurses/wincon/Makefile.wcc
259
- - vendor/PDCurses/wincon/README.md
260
- - vendor/PDCurses/wincon/pdcclip.c
261
- - vendor/PDCurses/wincon/pdcdisp.c
262
- - vendor/PDCurses/wincon/pdcgetsc.c
263
- - vendor/PDCurses/wincon/pdckbd.c
264
- - vendor/PDCurses/wincon/pdcscrn.c
265
- - vendor/PDCurses/wincon/pdcsetsc.c
266
- - vendor/PDCurses/wincon/pdcurses.ico
267
- - vendor/PDCurses/wincon/pdcurses.rc
268
- - vendor/PDCurses/wincon/pdcutil.c
269
- - vendor/PDCurses/wincon/pdcwin.h
270
- - vendor/PDCurses/wingui/CMakeLists.txt
271
- - vendor/PDCurses/wingui/Makefile.bcc
272
- - vendor/PDCurses/wingui/Makefile.dmc
273
- - vendor/PDCurses/wingui/Makefile.lcc
274
- - vendor/PDCurses/wingui/Makefile.mng
275
- - vendor/PDCurses/wingui/Makefile.vc
276
- - vendor/PDCurses/wingui/Makefile.wcc
277
- - vendor/PDCurses/wingui/README.md
278
- - vendor/PDCurses/wingui/pdcclip.c
279
- - vendor/PDCurses/wingui/pdcdisp.c
280
- - vendor/PDCurses/wingui/pdcgetsc.c
281
- - vendor/PDCurses/wingui/pdckbd.c
282
- - vendor/PDCurses/wingui/pdcscrn.c
283
- - vendor/PDCurses/wingui/pdcsetsc.c
284
- - vendor/PDCurses/wingui/pdcurses.ico
285
- - vendor/PDCurses/wingui/pdcurses.rc
286
- - vendor/PDCurses/wingui/pdcutil.c
287
- - vendor/PDCurses/wingui/pdcwin.h
288
- - vendor/PDCurses/x11/Makefile.in
289
- - vendor/PDCurses/x11/PDCurses.spec
290
- - vendor/PDCurses/x11/README.md
291
- - vendor/PDCurses/x11/ScrollBox.c
292
- - vendor/PDCurses/x11/ScrollBox.h
293
- - vendor/PDCurses/x11/ScrollBoxP.h
294
- - vendor/PDCurses/x11/aclocal.m4
295
- - vendor/PDCurses/x11/big_icon.xbm
296
- - vendor/PDCurses/x11/compose.h
297
- - vendor/PDCurses/x11/config.guess
298
- - vendor/PDCurses/x11/config.h.in
299
- - vendor/PDCurses/x11/config.sub
300
- - vendor/PDCurses/x11/configure
301
- - vendor/PDCurses/x11/configure.ac
302
- - vendor/PDCurses/x11/debian/changelog
303
- - vendor/PDCurses/x11/debian/compat
304
- - vendor/PDCurses/x11/debian/control
305
- - vendor/PDCurses/x11/debian/copyright
306
- - vendor/PDCurses/x11/debian/rules
307
- - vendor/PDCurses/x11/install-sh
308
- - vendor/PDCurses/x11/little_icon.xbm
309
- - vendor/PDCurses/x11/ncurses_cfg.h
310
- - vendor/PDCurses/x11/pdcclip.c
311
- - vendor/PDCurses/x11/pdcdisp.c
312
- - vendor/PDCurses/x11/pdcgetsc.c
313
- - vendor/PDCurses/x11/pdckbd.c
314
- - vendor/PDCurses/x11/pdcscrn.c
315
- - vendor/PDCurses/x11/pdcsetsc.c
316
- - vendor/PDCurses/x11/pdcutil.c
317
- - vendor/PDCurses/x11/pdcx11.c
318
- - vendor/PDCurses/x11/pdcx11.h
319
- - vendor/PDCurses/x11/sb.c
320
- - vendor/PDCurses/x11/x11.c
321
- - vendor/PDCurses/x11/xcurses-config.in
322
80
  homepage: https://github.com/ruby/curses
323
81
  licenses:
324
82
  - Ruby
325
83
  - BSD-2-Clause
326
84
  metadata: {}
327
- post_install_message:
85
+ post_install_message:
328
86
  rdoc_options: []
329
87
  require_paths:
330
88
  - lib
@@ -339,8 +97,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
339
97
  - !ruby/object:Gem::Version
340
98
  version: '0'
341
99
  requirements: []
342
- rubygems_version: 3.4.0.dev
343
- signing_key:
100
+ rubygems_version: 3.5.9
101
+ signing_key:
344
102
  specification_version: 4
345
103
  summary: A Ruby binding for curses, ncurses, and PDCurses. curses is an extension
346
104
  library for text UI applications. Formerly part of the Ruby standard library, [curses
@@ -1,47 +0,0 @@
1
- *.[oa]
2
- *.exe
3
- firework
4
- manext
5
- libXCurses.so
6
- ozdemo
7
- newtest
8
- ptest
9
- rain
10
- sdltest
11
- testcurs
12
- tuidemo
13
- worm
14
- xmas
15
- *.sho
16
- Makefile
17
- config.h
18
- config.log
19
- config.status
20
- PDCurses.md
21
- xcurses-config
22
- *.dll
23
- wingui.gif
24
- wingui.htm
25
- *.bat
26
- clock.c
27
- clock1.c
28
- fullscrn.c
29
- hello
30
- hello.c
31
- wingui/wcr*
32
- wingui/wct*
33
- wingui/wc_*
34
- wingui/wcw*
35
- wingui/z*
36
- wingui/scr2html.c
37
- wingui/newtest*
38
- wingui/*.sav
39
- wingui/*.def
40
- wincon/*.def
41
- *.obj
42
- *.bak
43
- *.map
44
- *.lib
45
- m
46
- .vscode
47
- build
@@ -1,49 +0,0 @@
1
- language: c
2
-
3
- os:
4
- - linux
5
- - osx
6
-
7
- compiler:
8
- - gcc
9
- - clang
10
-
11
- env:
12
- - BUILD_TYPE=Debug CMAKE_ARGS="-DPDC_WIDE=OFF -DPDC_UTF8=OFF -DPDCDEBUG=ON"
13
- - BUILD_TYPE=Debug CMAKE_ARGS="-DPDC_WIDE=OFF -DPDC_UTF8=ON -DPDCDEBUG=ON"
14
- - BUILD_TYPE=Debug CMAKE_ARGS="-DPDC_WIDE=ON -DPDC_UTF8=OFF -DPDCDEBUG=ON"
15
-
16
- - BUILD_TYPE=Release CMAKE_ARGS="-DPDC_WIDE=OFF -DPDC_UTF8=OFF"
17
- - BUILD_TYPE=Release CMAKE_ARGS="-DPDC_WIDE=OFF -DPDC_UTF8=ON"
18
- - BUILD_TYPE=Release CMAKE_ARGS="-DPDC_WIDE=ON -DPDC_UTF8=OFF"
19
-
20
- - BUILD_TYPE=MinSizeRel CMAKE_ARGS="-DPDC_WIDE=OFF -DPDC_UTF8=OFF"
21
- - BUILD_TYPE=MinSizeRel CMAKE_ARGS="-DPDC_WIDE=OFF -DPDC_UTF8=ON"
22
- - BUILD_TYPE=MinSizeRel CMAKE_ARGS="-DPDC_WIDE=ON -DPDC_UTF8=OFF"
23
-
24
- addons:
25
- apt:
26
- packages:
27
- - libncurses5-dev
28
- - libncursesw5-dev
29
- - libxaw7-dev
30
-
31
- install:
32
- - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then DEPS_DIR="${TRAVIS_BUILD_DIR}/deps"; fi
33
- - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then mkdir ${DEPS_DIR} && cd ${DEPS_DIR} && pwd; fi
34
- - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then travis_retry wget --no-check-certificate https://cmake.org/files/v3.11/cmake-3.11.0-Linux-x86_64.tar.gz; fi
35
- - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then echo "96d67e21f0983ebf0fffc5b106ec338c *cmake-3.11.0-Linux-x86_64.tar.gz" > cmake_md5.txt; fi
36
- - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then md5sum -c cmake_md5.txt; fi
37
- - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then tar -xvf cmake-3.11.0-Linux-x86_64.tar.gz > /dev/null; fi
38
- - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then mv cmake-3.11.0-Linux-x86_64 cmake-install; fi
39
- - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then PATH=${DEPS_DIR}/cmake-install:${DEPS_DIR}/cmake-install/bin:$PATH; fi
40
- - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install ncurses; fi
41
-
42
- before_script:
43
- - cd ${TRAVIS_BUILD_DIR}
44
- - mkdir build && cd build
45
- - cmake -DCMAKE_VERBOSE_MAKEFILE=FALSE -DCMAKE_BUILD_TYPE=${BUILD_TYPE}
46
- -DCMAKE_INSTALL_PREFIX=${TRAVIS_BUILD_DIR}/build/dist ${CMAKE_ARGS}
47
- ..
48
- script:
49
- - cmake --build . --config ${BUILD_TYPE} --target install