ncursesw 1.2.4.3 → 1.4.0.0
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.
- data/README +1 -1
- data/THANKS +1 -1
- data/TODO +1 -1
- data/VERSION +1 -1
- data/compat.h +1 -1
- data/examples/LICENSES_for_examples +1 -1
- data/examples/example.rb +2 -2
- data/examples/form.rb +1 -1
- data/examples/form2.rb +1 -1
- data/examples/hello_ncurses.rb +2 -2
- data/examples/rain.rb +2 -2
- data/examples/read_line.rb +1 -1
- data/examples/tclock.rb +2 -2
- data/examples/test_scanw.rb +2 -2
- data/extconf.rb +44 -5
- data/form_wrap.c +90 -65
- data/form_wrap.h +11 -3
- data/lib/ncurses_sugar.rb +342 -0
- data/lib/ncursesw.rb +4 -324
- data/make_dist.rb +16 -23
- data/menu_wrap.c +6 -4
- data/menu_wrap.h +7 -1
- data/ncurses_wrap.c +176 -83
- data/ncurses_wrap.h +8 -4
- data/panel_wrap.c +3 -2
- data/panel_wrap.h +7 -2
- metadata +35 -38
data/ncurses_wrap.h
CHANGED
@@ -2,7 +2,8 @@
|
|
2
2
|
* ncurses-ruby is a ruby module for accessing the FSF's ncurses library
|
3
3
|
* (C) 2002, 2003 Tobias Peters <t-peters@berlios.de>
|
4
4
|
* (C) 2004 Simon Kaczor <skaczor@cox.net>
|
5
|
-
* (C) 2009 Tobias Herzke
|
5
|
+
* (C) 2009 2011 Tobias Herzke
|
6
|
+
* (C) 2013 Gaute Hope <eg@gaute.vetsj.com>
|
6
7
|
*
|
7
8
|
* This module is free software; you can redistribute it and/or
|
8
9
|
* modify it under the terms of the GNU Lesser General Public
|
@@ -18,7 +19,7 @@
|
|
18
19
|
* License along with this module; if not, write to the Free Software
|
19
20
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
20
21
|
*
|
21
|
-
* $Id: ncurses_wrap.h,v 1.
|
22
|
+
* $Id: ncurses_wrap.h,v 1.4 2011-05-30 23:05:50 t-peters Exp $
|
22
23
|
*
|
23
24
|
* This file was adapted from the original ncurses header file which
|
24
25
|
* has the following copyright statements:
|
@@ -64,6 +65,8 @@
|
|
64
65
|
- v*printw functions (but normal printw functions are supported!)
|
65
66
|
*/
|
66
67
|
|
68
|
+
# define _XOPEN_SOURCE_EXTENDED
|
69
|
+
|
67
70
|
#if defined(HAVE_GETWIN) || defined(HAVE_PUTWIN)
|
68
71
|
# ifdef HAVE_UNISTD_H
|
69
72
|
# include <unistd.h>
|
@@ -79,11 +82,12 @@ int close(int);
|
|
79
82
|
# ifdef HAVE_NCURSES_CURSES_H
|
80
83
|
# include <ncurses/curses.h>
|
81
84
|
# else
|
82
|
-
#
|
85
|
+
# ifdef HAVE_NCURSESW_CURSES_H
|
86
|
+
# include <ncursesw/curses.h>
|
87
|
+
# endif
|
83
88
|
# endif
|
84
89
|
#endif
|
85
90
|
|
86
|
-
#include <locale.h>
|
87
91
|
#include <ruby.h>
|
88
92
|
|
89
93
|
extern VALUE mNcurses; /* module Ncurses */
|
data/panel_wrap.c
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
/*
|
2
2
|
* ncurses-ruby is a ruby module for accessing the FSF's ncurses library
|
3
3
|
* (C) 2002 Tobias Peters <t-peters@berlios.de>
|
4
|
+
* (C) 2011 Tobias Herzke
|
4
5
|
*
|
5
6
|
* This module is free software; you can redistribute it and/or
|
6
7
|
* modify it under the terms of the GNU Lesser General Public
|
@@ -17,9 +18,9 @@
|
|
17
18
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
18
19
|
*/
|
19
20
|
|
20
|
-
/* $Id: panel_wrap.c,v 1.
|
21
|
+
/* $Id: panel_wrap.c,v 1.3 2011-05-30 23:05:50 t-peters Exp $ */
|
21
22
|
|
22
|
-
#
|
23
|
+
#if defined(HAVE_PANEL_H) || defined(HAVE_NCURSESW_PANEL_H)
|
23
24
|
|
24
25
|
#include "panel_wrap.h"
|
25
26
|
#include "ncurses_wrap.h"
|
data/panel_wrap.h
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
/*
|
2
2
|
* ncurses-ruby is a ruby module for accessing the FSF's ncurses library
|
3
3
|
* (C) 2002 Tobias Peters <t-peters@berlios.de>
|
4
|
+
* (C) 2011 Tobias Herzke
|
4
5
|
*
|
5
6
|
* This module is free software; you can redistribute it and/or
|
6
7
|
* modify it under the terms of the GNU Lesser General Public
|
@@ -17,11 +18,15 @@
|
|
17
18
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
18
19
|
*/
|
19
20
|
|
20
|
-
/* $Id: panel_wrap.h,v 1.
|
21
|
+
/* $Id: panel_wrap.h,v 1.6 2011-05-30 23:05:50 t-peters Exp $ */
|
21
22
|
|
22
|
-
#if !defined(PANEL_HH) && defined(HAVE_PANEL_H)
|
23
|
+
#if !defined(PANEL_HH) && (defined(HAVE_PANEL_H) || defined(HAVE_NCURSESW_PANEL_H))
|
23
24
|
#define PANEL_HH
|
25
|
+
#ifdef HAVE_PANEL_H
|
24
26
|
#include <panel.h>
|
27
|
+
#else
|
28
|
+
#include <ncursesw/panel.h>
|
29
|
+
#endif
|
25
30
|
#include <ruby.h>
|
26
31
|
|
27
32
|
extern VALUE mPanel;
|
metadata
CHANGED
@@ -1,26 +1,25 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: ncursesw
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.4.0.0
|
5
|
+
prerelease:
|
5
6
|
platform: ruby
|
6
|
-
authors:
|
7
|
-
|
7
|
+
authors:
|
8
|
+
- Tobias Herzke
|
9
|
+
- Sup developers
|
8
10
|
autorequire:
|
9
|
-
bindir:
|
10
|
-
cert_chain:
|
11
|
-
date:
|
12
|
-
default_executable:
|
11
|
+
bindir: bin
|
12
|
+
cert_chain: []
|
13
|
+
date: 2013-12-13 00:00:00.000000000 Z
|
13
14
|
dependencies: []
|
14
|
-
|
15
|
-
|
16
|
-
|
15
|
+
description: Tweaked version of ncursesw from http://ncurses-ruby.berlios.de/.
|
16
|
+
email:
|
17
|
+
- sup-talk@rubyforge.org
|
17
18
|
executables: []
|
18
|
-
|
19
|
-
extensions:
|
19
|
+
extensions:
|
20
20
|
- extconf.rb
|
21
21
|
extra_rdoc_files: []
|
22
|
-
|
23
|
-
files:
|
22
|
+
files:
|
24
23
|
- Changes
|
25
24
|
- COPYING
|
26
25
|
- MANIFEST
|
@@ -44,38 +43,36 @@ files:
|
|
44
43
|
- ncurses_wrap.c
|
45
44
|
- ncurses_wrap.h
|
46
45
|
- lib/ncursesw.rb
|
46
|
+
- lib/ncurses_sugar.rb
|
47
47
|
- panel_wrap.c
|
48
48
|
- panel_wrap.h
|
49
49
|
- menu_wrap.c
|
50
50
|
- menu_wrap.h
|
51
51
|
- compat.h
|
52
|
-
|
53
|
-
homepage: http://ncurses-ruby.berlios.de/
|
52
|
+
homepage: http://github.com/sup-heliotrope/ncursesw-ruby
|
54
53
|
licenses: []
|
55
|
-
|
56
54
|
post_install_message:
|
57
55
|
rdoc_options: []
|
58
|
-
|
59
|
-
require_paths:
|
56
|
+
require_paths:
|
60
57
|
- lib
|
61
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
58
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
59
|
+
none: false
|
60
|
+
requirements:
|
61
|
+
- - ! '>='
|
62
|
+
- !ruby/object:Gem::Version
|
63
|
+
version: '0'
|
64
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
65
|
+
none: false
|
66
|
+
requirements:
|
67
|
+
- - ! '>='
|
68
|
+
- !ruby/object:Gem::Version
|
69
|
+
version: '0'
|
73
70
|
requirements: []
|
74
|
-
|
75
71
|
rubyforge_project:
|
76
|
-
rubygems_version: 1.
|
72
|
+
rubygems_version: 1.8.25
|
77
73
|
signing_key:
|
78
|
-
specification_version:
|
79
|
-
summary:
|
74
|
+
specification_version: 3
|
75
|
+
summary: ! 'This wrapper provides access to the functions, macros, global variables
|
76
|
+
and constants of the ncurses library. These are mapped to a Ruby Module named "Ncurses": Functions
|
77
|
+
and external variables are implemented as singleton functions of the Module Ncurses.'
|
80
78
|
test_files: []
|
81
|
-
|