rbcurse 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +7 -0
- data/History.txt +8 -1
- data/README.txt +17 -11
- data/Rakefile +2 -2
- data/lib/rbcurse/rtable.rb +3 -2
- data/lib/rbcurse/table/tablecellrenderer.rb +1 -1
- data/lib/rbcurse/table/tabledatecellrenderer.rb +1 -1
- data/lib/rbcurse.rb +1 -1
- metadata +2 -2
data/CHANGELOG
CHANGED
data/History.txt
CHANGED
data/README.txt
CHANGED
@@ -2,22 +2,29 @@
|
|
2
2
|
|
3
3
|
* http://totalrecall.wordpress.com << CORRECTED !!!
|
4
4
|
|
5
|
+
* rbcurse on rubyforge: http://rbcurse.rubyforge.org/
|
6
|
+
|
5
7
|
* See latest changes on http://github.com/rkumar/rbcurse/tree/master/CHANGELOG
|
6
8
|
|
7
|
-
*
|
8
|
-
|
9
|
+
* Many working demos in examples folder, such as:
|
10
|
+
|
11
|
+
* test2.rb (exit with F1, Or Cancel button/Alt-C) contains various
|
12
|
+
widgets. F2 for menubar toggling
|
13
|
+
|
14
|
+
* rfe.rb is a ruby file explorer
|
15
|
+
|
16
|
+
* testtodo.rb is a test TODO application
|
9
17
|
|
10
18
|
* Screenshots on http://github.com/rkumar/rbcurse/wikis/screenshots
|
11
|
-
|
19
|
+
(OLD)
|
20
|
+
and http://www.benegal.org/files/screen/?M=D (new)
|
21
|
+
and on blog, http://totalrecall.wordpress.com
|
12
22
|
|
13
|
-
Full screen sample: http://www.benegal.org/files/screen/nc_ss_full.png
|
14
23
|
|
15
24
|
== DESCRIPTION:
|
16
25
|
|
17
|
-
A small widget library written in ruby for creating ncurses
|
26
|
+
A small but comprehensive widget library written in ruby for creating ncurses
|
18
27
|
applications.
|
19
|
-
See lib/rbcurse/rwidgets.rb and lib/rbcurse/rform.rb.
|
20
|
-
Test programs are in base dir: test1.rb, test2.rb, testtabp.rb
|
21
28
|
|
22
29
|
== FEATURES
|
23
30
|
|
@@ -37,12 +44,11 @@ Above may be created using DSL like syntax, or hashes.
|
|
37
44
|
|
38
45
|
== Sample programs:
|
39
46
|
|
47
|
+
* rfe : file explorer or Finder like app
|
48
|
+
* testtodo.rb : a todo app based on a yaml file
|
40
49
|
* test2.rb most widgets (including menus)
|
41
|
-
http://github.com/rkumar/rbcurse/tree/master/test2.rb
|
42
50
|
* test1.rb various kinds of messageboxes (input, list, custom)
|
43
|
-
http://github.com/rkumar/rbcurse/tree/master/test1.rb
|
44
51
|
* testtabp.rb tabbed pane
|
45
|
-
http://github.com/rkumar/rbcurse/tree/master/testtabp.rb
|
46
52
|
* testcombo.rb combos with various insert policies and vertical
|
47
53
|
alignments
|
48
54
|
|
@@ -70,7 +76,7 @@ I am developing and testing under "screen" under OS X Leopard.
|
|
70
76
|
== SYNOPSIS:
|
71
77
|
|
72
78
|
See lib/rbcurse/rwidgets.rb.
|
73
|
-
For test programs, see test1, test2, testcombo etc in
|
79
|
+
For test programs, see test1, test2, testcombo etc in examples folder.
|
74
80
|
|
75
81
|
This depends only on "window" provided by ncurses. Does not use forms
|
76
82
|
and fields. Minor changes and improvements may have happened to sample
|
data/Rakefile
CHANGED
@@ -22,7 +22,7 @@ Hoe.new('rbcurse', Rbcurse::VERSION) do |p|
|
|
22
22
|
end
|
23
23
|
|
24
24
|
|
25
|
-
desc "Release and publish documentation"
|
26
|
-
task :repubdoc => [:release, :publish_docs]
|
25
|
+
#desc "Release and publish documentation"
|
26
|
+
#task :repubdoc => [:release, :publish_docs]
|
27
27
|
|
28
28
|
# vim: syntax=Ruby
|
data/lib/rbcurse/rtable.rb
CHANGED
@@ -756,7 +756,8 @@ module RubyCurses
|
|
756
756
|
width = renderer.display_length + 1
|
757
757
|
#renderer.repaint @form.window, r+hh, c+(colix*11), content, focussed, selected
|
758
758
|
acolumn.column_offset = offset
|
759
|
-
|
759
|
+
# added crow on 2009-02-11 22:46
|
760
|
+
renderer.repaint @form.window, r+hh, c+(offset), crow, content, focussed, selected
|
760
761
|
offset += width
|
761
762
|
end
|
762
763
|
else
|
@@ -787,7 +788,7 @@ module RubyCurses
|
|
787
788
|
renderer.display_length acolumn.width unless acolumn.nil?
|
788
789
|
width = renderer.display_length + 1
|
789
790
|
content = tc.header_value
|
790
|
-
renderer.repaint @form.window, r, c+(offset), content, false, false
|
791
|
+
renderer.repaint @form.window, r, c+(offset),0, content, false, false
|
791
792
|
offset += width
|
792
793
|
end
|
793
794
|
end
|
@@ -33,7 +33,7 @@ module RubyCurses
|
|
33
33
|
|
34
34
|
##
|
35
35
|
# XXX need to move wrapping etc up and done once.
|
36
|
-
def repaint graphic, r=@row,c=@col, value=@text, focussed=false, selected=false
|
36
|
+
def repaint graphic, r=@row,c=@col, row_index=-1, value=@text, focussed=false, selected=false
|
37
37
|
lablist = []
|
38
38
|
#value=value.to_s # ??
|
39
39
|
value=transform value
|
@@ -50,7 +50,7 @@ module RubyCurses
|
|
50
50
|
|
51
51
|
##
|
52
52
|
# XXX need to move wrapping etc up and done once.
|
53
|
-
def repaint graphic, r=@row,c=@col, value=@text, focussed=false, selected=false
|
53
|
+
def repaint graphic, r=@row,c=@col, row_index=-1,value=@text, focussed=false, selected=false
|
54
54
|
lablist = []
|
55
55
|
#value=value.to_s # ??
|
56
56
|
value=transform value
|
data/lib/rbcurse.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rbcurse
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Rahul Kumar
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-02-
|
12
|
+
date: 2009-02-12 00:00:00 +05:30
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|