ncursesw 1.4.4 → 1.4.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml ADDED
@@ -0,0 +1,15 @@
1
+ ---
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ Y2Y2MjcwNmZlZGQ5NWM0ZGEwNzVmODE0MWJlNzAzMGI3NzEzNGMyZA==
5
+ data.tar.gz: !binary |-
6
+ NTM1NDJiYzNkOWZlZmNhM2U5MjA1MTg5NDM5YTBmMWYyYTZkZGJlNQ==
7
+ SHA512:
8
+ metadata.gz: !binary |-
9
+ NTk4NDI1MDNhZDJmM2YwYzIzZjdjZGM3ZGMyMGNiYjk1YjAxN2M3YWFiMjYw
10
+ ZGY2MjYyNDFlZWRmZWE4NzUyZmU3MDJhZWVhMWE5YjQ5MDA0MDdmNzM0OTU3
11
+ NWRjNmM3ZjRmOWY4NGZmNjc1MzAzMmFiMzU2YzEzZGQ2MzU0YjI=
12
+ data.tar.gz: !binary |-
13
+ NGJiODYzOTg4ZmM4ZTI1Mzk0MTdhYmMxMjJlNmJjYmI4M2I0ODRkY2UwMzcx
14
+ MGNiNjJiYmRlMjhmMjU0ODczYWZlYjA0YjEyNTQ1MzRmMWEzZjkxNzI4NTAz
15
+ ODEzNTg1ZjJkYWJkYjM0NjFlOTE3ODgzYzIwNzQ2ZTMyYjAxZGY=
checksums.yaml.gz.sig ADDED
Binary file
data.tar.gz.sig ADDED
@@ -0,0 +1 @@
1
+ �P)i���Ns���䃮� �D�j� �y ��È�F�)��P� �y�}t�2e
@@ -6,6 +6,10 @@
6
6
  # Written 2003, 2004 by Tobias Peters
7
7
  # No warranties
8
8
  # Share and enjoy!
9
+ #
10
+ # 2014: Updated by Gaute Hope
11
+ # Note: This is not wide char / unicode safe - take a look at
12
+ # form_get_wch.rb for a better example.
9
13
 
10
14
  require "ncursesw"
11
15
 
@@ -26,7 +30,7 @@ def read_line(y, x,
26
30
  cursor_pos = [0, cursor_pos-1].max
27
31
  when Ncurses::KEY_RIGHT
28
32
  # similar, implement yourself !
29
- when Ncurses::KEY_ENTER, ?\n, ?\r
33
+ when Ncurses::KEY_ENTER, "\n".ord
30
34
  return string, cursor_pos, ch # Which return key has been used?
31
35
  when Ncurses::KEY_BACKSPACE
32
36
  string = string[0...([0, cursor_pos-1].max)] + string[cursor_pos..-1]
@@ -38,9 +42,11 @@ def read_line(y, x,
38
42
  string[cursor_pos,0] = ch.chr
39
43
  cursor_pos += 1
40
44
  else
45
+ Ncurses.mvprintw(15, 10, "A: Got: #{ch.inspect} (#{[ch].pack("U")})")
41
46
  Ncurses.beep
42
47
  end
43
48
  else
49
+ Ncurses.mvprintw(16, 10, "B: Got: #{ch.inspect} (#{[ch].pack("U")})")
44
50
  Ncurses.beep
45
51
  end
46
52
  end
@@ -54,6 +60,7 @@ if (__FILE__ == $0) then begin
54
60
 
55
61
  # recognize KEY_ENTER, KEY_BACKSPACE etc
56
62
  Ncurses.keypad(Ncurses.stdscr, true)
63
+ #Ncurses.nonl()
57
64
 
58
65
  y = 10
59
66
  x = 2
data/ncurses_wrap.c CHANGED
@@ -761,9 +761,18 @@ static VALUE rbncurs_color_set(VALUE dummy, VALUE arg1, VALUE arg2) {
761
761
  return INT2NUM(color_set(NUM2INT(arg1), ((void)(arg2),NULL)));
762
762
  }
763
763
  #endif
764
+
765
+
766
+
764
767
  static VALUE rbncurs_COLOR_PAIR(VALUE dummy, VALUE arg1) {
765
768
  return INT2NUM(COLOR_PAIR(NUM2INT(arg1)));
766
769
  }
770
+
771
+ // alias for COLOR_PAIR for compatibilty with ruby Curses gem.
772
+ static VALUE rbncurs_color_pair(VALUE dummy, VALUE arg1) {
773
+ return rbncurs_COLOR_PAIR (dummy, arg1);
774
+ }
775
+
767
776
  static VALUE rbncurs_copywin(VALUE dummy, VALUE arg1, VALUE arg2, VALUE arg3, VALUE arg4, VALUE arg5, VALUE arg6, VALUE arg7, VALUE arg8, VALUE arg9) {
768
777
  return INT2NUM(copywin(get_window(arg1), get_window(arg2), NUM2INT(arg3), NUM2INT(arg4), NUM2INT(arg5), NUM2INT(arg6), NUM2INT(arg7), NUM2INT(arg8), NUM2INT(arg9)));
769
778
  }
@@ -1808,6 +1817,7 @@ static void init_functions_2(void) {
1808
1817
  NCFUNC(color_set, 2);
1809
1818
  #endif
1810
1819
  NCFUNC(COLOR_PAIR, 1);
1820
+ NCFUNC(color_pair, 1);
1811
1821
  NCFUNC(copywin, 9);
1812
1822
  NCFUNC(curs_set, 1);
1813
1823
  NCFUNC(def_prog_mode, 0);
metadata CHANGED
@@ -1,16 +1,44 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ncursesw
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.4
5
- prerelease:
4
+ version: 1.4.5
6
5
  platform: ruby
7
6
  authors:
8
7
  - Tobias Herzke
9
8
  - Sup developers
10
9
  autorequire:
11
10
  bindir: bin
12
- cert_chain: []
13
- date: 2014-01-27 00:00:00.000000000 Z
11
+ cert_chain:
12
+ - !binary |-
13
+ LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSURWRENDQWp5Z0F3SUJB
14
+ Z0lCQURBTkJna3Foa2lHOXcwQkFRVUZBREJRTVFzd0NRWURWUVFEREFKbFp6
15
+ RVYKTUJNR0NnbVNKb21UOGl4a0FSa1dCV2RoZFhSbE1SVXdFd1lLQ1pJbWla
16
+ UHlMR1FCR1JZRmRtVjBjMm94RXpBUgpCZ29Ka2lhSmsvSXNaQUVaRmdOamIy
17
+ MHdIaGNOTVRNd05UQTRNVEF6T0RRM1doY05NVFF3TlRBNE1UQXpPRFEzCldq
18
+ QlFNUXN3Q1FZRFZRUUREQUpsWnpFVk1CTUdDZ21TSm9tVDhpeGtBUmtXQldk
19
+ aGRYUmxNUlV3RXdZS0NaSW0KaVpQeUxHUUJHUllGZG1WMGMyb3hFekFSQmdv
20
+ SmtpYUprL0lzWkFFWkZnTmpiMjB3Z2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VXalYKK0pNdURzK2lXZWZw
37
+ RjRSM0J5U29PYzFRNFdvRVMzK29jMHFvMzdNc0FaeWZuUUlQVFpreUxaQ014
38
+ ZUw2TWhhNApoRmMyeUFOQmo4dm9hWTVDNzRDZzJWcUV4dGNuU2F4VXRXOXdD
39
+ NHc1aE9sZzBBVmZiMUpXemc9PQotLS0tLUVORCBDRVJUSUZJQ0FURS0tLS0t
40
+ Cg==
41
+ date: 2014-02-03 00:00:00.000000000 Z
14
42
  dependencies: []
15
43
  description: Tweaked version of ncursesw from http://ncurses-ruby.berlios.de/.
16
44
  email:
@@ -20,56 +48,55 @@ extensions:
20
48
  - extconf.rb
21
49
  extra_rdoc_files: []
22
50
  files:
23
- - Changes
24
51
  - COPYING
52
+ - Changes
25
53
  - README
26
54
  - THANKS
27
55
  - TODO
56
+ - compat.h
57
+ - examples/LICENSES_for_examples
28
58
  - examples/example.rb
29
59
  - examples/form.rb
30
60
  - examples/form2.rb
31
61
  - examples/form_get_wch.rb
32
62
  - examples/hello_ncurses.rb
33
- - examples/LICENSES_for_examples
34
63
  - examples/rain.rb
35
- - examples/tclock.rb
36
64
  - examples/read_line.rb
65
+ - examples/tclock.rb
37
66
  - examples/test_scanw.rb
38
67
  - extconf.rb
39
68
  - form_wrap.c
40
69
  - form_wrap.h
70
+ - lib/ncurses_sugar.rb
71
+ - lib/ncursesw.rb
72
+ - menu_wrap.c
73
+ - menu_wrap.h
41
74
  - ncurses_wrap.c
42
75
  - ncurses_wrap.h
43
- - lib/ncursesw.rb
44
- - lib/ncurses_sugar.rb
45
76
  - panel_wrap.c
46
77
  - panel_wrap.h
47
- - menu_wrap.c
48
- - menu_wrap.h
49
- - compat.h
50
78
  homepage: http://github.com/sup-heliotrope/ncursesw-ruby
51
79
  licenses: []
80
+ metadata: {}
52
81
  post_install_message:
53
82
  rdoc_options: []
54
83
  require_paths:
55
84
  - lib
56
85
  required_ruby_version: !ruby/object:Gem::Requirement
57
- none: false
58
86
  requirements:
59
87
  - - ! '>='
60
88
  - !ruby/object:Gem::Version
61
89
  version: '0'
62
90
  required_rubygems_version: !ruby/object:Gem::Requirement
63
- none: false
64
91
  requirements:
65
92
  - - ! '>='
66
93
  - !ruby/object:Gem::Version
67
94
  version: '0'
68
95
  requirements: []
69
96
  rubyforge_project:
70
- rubygems_version: 1.8.25
97
+ rubygems_version: 2.2.1
71
98
  signing_key:
72
- specification_version: 3
99
+ specification_version: 4
73
100
  summary: ! 'This wrapper provides access to the functions, macros, global variables
74
101
  and constants of the ncurses library. These are mapped to a Ruby Module named "Ncurses": Functions
75
102
  and external variables are implemented as singleton functions of the Module Ncurses.'
metadata.gz.sig ADDED
Binary file