rbcurse 1.2.0 → 1.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (113) hide show
  1. data/CHANGELOG +20 -0
  2. data/NOTES +45 -0
  3. data/README.markdown +47 -68
  4. data/TODO2.txt +29 -32
  5. data/VERSION +1 -1
  6. data/examples/abasiclist.rb +2 -0
  7. data/examples/app.rb +2 -2
  8. data/examples/app.sample +10 -0
  9. data/examples/appemail.rb +29 -2
  10. data/examples/appemaillb.rb +1 -1
  11. data/examples/appgcompose.rb +9 -2
  12. data/examples/appmethods.rb +69 -0
  13. data/examples/atree.rb +2 -2
  14. data/examples/menu1.rb +1 -1
  15. data/examples/newtesttabp.rb +8 -5
  16. data/examples/qdfilechooser.rb +6 -3
  17. data/examples/rfe.rb +71 -16
  18. data/examples/rmail.rb +76 -7
  19. data/examples/sqlc.rb +14 -3
  20. data/examples/sqlm.rb +3 -3
  21. data/examples/term.rb +48 -0
  22. data/examples/term2.rb +48 -21
  23. data/examples/test1.rb +2 -2
  24. data/examples/test2.rb +162 -71
  25. data/examples/testapp.rb +2 -2
  26. data/examples/testapp2.rb +1 -1
  27. data/examples/testchars.rb +47 -46
  28. data/examples/testcombo.rb +2 -2
  29. data/examples/testkeypress.rb +2 -2
  30. data/examples/testlistbox.rb +2 -2
  31. data/examples/testmenu.rb +1 -1
  32. data/examples/testmulticomp.rb +1 -1
  33. data/examples/testmultispl.rb +1 -1
  34. data/examples/testree.rb +1 -22
  35. data/examples/testscroller.rb +2 -2
  36. data/examples/testscrolllb.rb +2 -2
  37. data/examples/testscrollp.rb +2 -2
  38. data/examples/testscrollta.rb +2 -2
  39. data/examples/testscrolltable.rb +2 -2
  40. data/examples/testsplit.rb +2 -2
  41. data/examples/testsplit2.rb +2 -2
  42. data/examples/testsplit3.rb +2 -2
  43. data/examples/testsplit3_1.rb +2 -2
  44. data/examples/testsplit3a.rb +2 -2
  45. data/examples/testsplit3b.rb +2 -2
  46. data/examples/testsplitta.rb +2 -2
  47. data/examples/testsplittv.rb +2 -2
  48. data/examples/testsplittvv.rb +2 -2
  49. data/examples/testtable.rb +2 -2
  50. data/examples/testtabp.rb +2 -2
  51. data/examples/testtodo.rb +1 -1
  52. data/examples/testtpane.rb +2 -2
  53. data/examples/testtpane2.rb +2 -2
  54. data/examples/testtpanetable.rb +6 -5
  55. data/examples/testvimsplit.rb +2 -2
  56. data/examples/viewtodo.rb +1 -1
  57. data/lib/rbcurse.rb +2 -1
  58. data/lib/rbcurse/action.rb +1 -1
  59. data/lib/rbcurse/app.rb +51 -14
  60. data/lib/rbcurse/applicationheader.rb +1 -1
  61. data/lib/rbcurse/celleditor.rb +1 -1
  62. data/lib/rbcurse/colormap.rb +11 -11
  63. data/lib/rbcurse/comboboxcellrenderer.rb +1 -1
  64. data/lib/rbcurse/extras/bottomline.rb +22 -10
  65. data/lib/rbcurse/extras/directorylist.rb +14 -1
  66. data/lib/rbcurse/extras/divider.rb +1 -1
  67. data/lib/rbcurse/extras/listselectable.rb +2 -2
  68. data/lib/rbcurse/extras/masterdetail.rb +3 -1
  69. data/lib/rbcurse/extras/scrollbar.rb +1 -1
  70. data/lib/rbcurse/extras/stdscrwindow.rb +75 -24
  71. data/lib/rbcurse/extras/tabular.rb +8 -3
  72. data/lib/rbcurse/extras/viewer.rb +18 -2
  73. data/lib/rbcurse/io.rb +26 -13
  74. data/lib/rbcurse/keylabelprinter.rb +3 -2
  75. data/lib/rbcurse/listcellrenderer.rb +1 -0
  76. data/lib/rbcurse/listkeys.rb +3 -2
  77. data/lib/rbcurse/listselectable.rb +4 -3
  78. data/lib/rbcurse/rbasiclistbox.rb +12 -5
  79. data/lib/rbcurse/rcombo.rb +2 -2
  80. data/lib/rbcurse/rcommandwindow.rb +5 -3
  81. data/lib/rbcurse/rdialogs.rb +8 -2
  82. data/lib/rbcurse/rlistbox.rb +10 -2
  83. data/lib/rbcurse/rmenu.rb +4 -4
  84. data/lib/rbcurse/rmessagebox.rb +10 -5
  85. data/lib/rbcurse/rmulticontainer.rb +21 -8
  86. data/lib/rbcurse/rmultisplit.rb +2 -2
  87. data/lib/rbcurse/rmultitextview.rb +5 -3
  88. data/lib/rbcurse/rpopupmenu.rb +3 -3
  89. data/lib/rbcurse/rprogress.rb +3 -2
  90. data/lib/rbcurse/rscrollform.rb +2 -2
  91. data/lib/rbcurse/rscrollpane.rb +9 -9
  92. data/lib/rbcurse/rsplitpane.rb +2 -2
  93. data/lib/rbcurse/rsplitpane2.rb +2 -2
  94. data/lib/rbcurse/rtabbedpane.rb +48 -12
  95. data/lib/rbcurse/rtabbedwindow.rb +4 -4
  96. data/lib/rbcurse/rtable.rb +6 -3
  97. data/lib/rbcurse/rtextarea.rb +8 -8
  98. data/lib/rbcurse/rtextview.rb +3 -2
  99. data/lib/rbcurse/rtree.rb +2 -2
  100. data/lib/rbcurse/rviewport.rb +2 -2
  101. data/lib/rbcurse/rvimsplit.rb +3 -2
  102. data/lib/rbcurse/rwidget.rb +63 -26
  103. data/lib/rbcurse/scrollable.rb +1 -1
  104. data/lib/rbcurse/table/tablecellrenderer.rb +1 -1
  105. data/lib/rbcurse/table/tabledatecellrenderer.rb +1 -1
  106. data/lib/rbcurse/tree/treemodel.rb +1 -1
  107. data/lib/rbcurse/vieditable.rb +1 -0
  108. data/lib/ver/ncurses.rb +122 -4
  109. data/lib/ver/panel.rb +162 -0
  110. data/lib/ver/window.rb +262 -120
  111. metadata +19 -7
  112. data/examples/keytest.rb +0 -178
  113. data/examples/mpad2.rb +0 -156
data/examples/testapp.rb CHANGED
@@ -23,7 +23,7 @@ class Testy
23
23
  puts @value
24
24
  app = App.new
25
25
  $log.debug " APP : value #{value}" if $log.debug?
26
- header = app.app_header "rbcurse 1.2.0", :text_center => " #{@value} Demo", :text_right =>"New Improved!", :color => :black, :bgcolor => :white, :attr => :bold
26
+ header = app.app_header "rbcurse #{Rbcurse::VERSION} " , :text_center => " #{@value} Demo", :text_right =>"New Improved!", :color => :black, :bgcolor => :white, :attr => :bold
27
27
  app.message "Press F1 to exit from here #{@value} "
28
28
 
29
29
  app.stack :margin_top => 2, :margin => 5, :width => 30 do |s|
@@ -40,5 +40,5 @@ class Testy
40
40
  end
41
41
  end
42
42
  if __FILE__ == $PROGRAM_NAME
43
- Testy.new "Rahul"
43
+ Testy.new "FFI-NCURSES"
44
44
  end
data/examples/testapp2.rb CHANGED
@@ -29,7 +29,7 @@ class Testy
29
29
 
30
30
  App.new do |app|
31
31
  $log.debug " APP : value #{value}" if $log.debug?
32
- header = app.app_header "rbcurse 1.2.0", :text_center => " #{@value} Demo", :text_right =>"New Improved!", :color => :black, :bgcolor => :white, :attr => :bold
32
+ header = app.app_header "rbcurse #{Rbcurse::VERSION} ", :text_center => " #{@value} Demo", :text_right =>"New Improved!", :color => :black, :bgcolor => :white, :attr => :bold
33
33
  app.message "Press F1 to exit from here #{@value} "
34
34
 
35
35
  app.stack :margin_top => 2, :margin => 5, :width => 30 do |s|
@@ -1,6 +1,6 @@
1
1
  #$LOAD_PATH << "/Users/rahul/work/projects/rbcurse/"
2
2
  require 'rubygems'
3
- require 'ncurses'
3
+ #require 'ncurses' # FFI
4
4
  require 'logger'
5
5
  #require 'lib/ver/keyboard'
6
6
  require 'rbcurse'
@@ -11,7 +11,7 @@ if $0 == __FILE__
11
11
  begin
12
12
  # Initialize curses
13
13
  VER::start_ncurses # this is initializing colors via ColorMap.setup
14
- $log = Logger.new((File.join(ENV["LOGDIR"] || "./" ,"view.log")))
14
+ $log = Logger.new((File.join(ENV["LOGDIR"] || "./" ,"rbc13.log")))
15
15
  $log.level = Logger::DEBUG
16
16
 
17
17
  @window = VER::Window.root_window
@@ -23,95 +23,95 @@ if $0 == __FILE__
23
23
  arr=[]; sarr=[]
24
24
 
25
25
  sarr << "ACS_BBSS"
26
- arr << ACS_BBSS
26
+ arr << FFI::NCurses::ACS_BBSS
27
27
  sarr << "ACS_BLOCK"
28
- arr << ACS_BLOCK
28
+ arr << FFI::NCurses::ACS_BLOCK
29
29
  sarr << "ACS_BOARD"
30
- arr << ACS_BOARD
30
+ arr << FFI::NCurses::ACS_BOARD
31
31
  sarr << "ACS_BSBS"
32
- arr << ACS_BSBS
32
+ arr << FFI::NCurses::ACS_BSBS
33
33
  sarr << "ACS_BSSB"
34
- arr << ACS_BSSB
34
+ arr << FFI::NCurses::ACS_BSSB
35
35
  sarr << "ACS_BSSS"
36
- arr << ACS_BSSS
36
+ arr << FFI::NCurses::ACS_BSSS
37
37
  sarr << "ACS_BTEE"
38
- arr << ACS_BTEE
38
+ arr << FFI::NCurses::ACS_BTEE
39
39
  sarr << "ACS_BULLET"
40
- arr << ACS_BULLET
40
+ arr << FFI::NCurses::ACS_BULLET
41
41
  sarr << "ACS_CKBOARD"
42
- arr << ACS_CKBOARD
42
+ arr << FFI::NCurses::ACS_CKBOARD
43
43
  sarr << "ACS_DARROW"
44
- arr << ACS_DARROW
44
+ arr << FFI::NCurses::ACS_DARROW
45
45
  sarr << "ACS_DEGREE"
46
- arr << ACS_DEGREE
46
+ arr << FFI::NCurses::ACS_DEGREE
47
47
  sarr << "ACS_DIAMOND"
48
- arr << ACS_DIAMOND
48
+ arr << FFI::NCurses::ACS_DIAMOND
49
49
  sarr << "ACS_GEQUAL"
50
- arr << ACS_GEQUAL
50
+ arr << FFI::NCurses::ACS_GEQUAL
51
51
  sarr << "ACS_HLINE"
52
- arr << ACS_HLINE
52
+ arr << FFI::NCurses::ACS_HLINE
53
53
  sarr << "ACS_LANTERN"
54
- arr << ACS_LANTERN
54
+ arr << FFI::NCurses::ACS_LANTERN
55
55
  sarr << "ACS_LARROW"
56
- arr << ACS_LARROW
56
+ arr << FFI::NCurses::ACS_LARROW
57
57
  sarr << "ACS_LEQUAL"
58
- arr << ACS_LEQUAL
58
+ arr << FFI::NCurses::ACS_LEQUAL
59
59
  sarr << "ACS_LLCORNER"
60
- arr << ACS_LLCORNER
60
+ arr << FFI::NCurses::ACS_LLCORNER
61
61
  sarr << "ACS_LRCORNER"
62
- arr << ACS_LRCORNER
62
+ arr << FFI::NCurses::ACS_LRCORNER
63
63
  sarr << "ACS_LTEE"
64
- arr << ACS_LTEE
64
+ arr << FFI::NCurses::ACS_LTEE
65
65
  sarr << "ACS_NEQUAL"
66
- arr << ACS_NEQUAL
66
+ arr << FFI::NCurses::ACS_NEQUAL
67
67
  sarr << "ACS_PI"
68
- arr << ACS_PI
68
+ arr << FFI::NCurses::ACS_PI
69
69
  sarr << "ACS_PLMINUS"
70
- arr << ACS_PLMINUS
70
+ arr << FFI::NCurses::ACS_PLMINUS
71
71
  sarr << "ACS_PLUS"
72
- arr << ACS_PLUS
72
+ arr << FFI::NCurses::ACS_PLUS
73
73
  sarr << "ACS_RARROW"
74
- arr << ACS_RARROW
74
+ arr << FFI::NCurses::ACS_RARROW
75
75
  sarr << "ACS_RTEE"
76
- arr << ACS_RTEE
76
+ arr << FFI::NCurses::ACS_RTEE
77
77
  sarr << "ACS_S1"
78
- arr << ACS_S1
78
+ arr << FFI::NCurses::ACS_S1
79
79
  sarr << "ACS_S3"
80
- arr << ACS_S3
80
+ arr << FFI::NCurses::ACS_S3
81
81
  sarr << "ACS_S7"
82
- arr << ACS_S7
82
+ arr << FFI::NCurses::ACS_S7
83
83
  sarr << "ACS_S9"
84
- arr << ACS_S9
84
+ arr << FFI::NCurses::ACS_S9
85
85
  sarr << "ACS_SBBS"
86
- arr << ACS_SBBS
86
+ arr << FFI::NCurses::ACS_SBBS
87
87
  sarr << "ACS_SBSB"
88
- arr << ACS_SBSB
88
+ arr << FFI::NCurses::ACS_SBSB
89
89
  sarr << "ACS_SBSS"
90
- arr << ACS_SBSS
90
+ arr << FFI::NCurses::ACS_SBSS
91
91
  sarr << "ACS_SSBB"
92
- arr << ACS_SSBB
92
+ arr << FFI::NCurses::ACS_SSBB
93
93
  sarr << "ACS_SSBS"
94
- arr << ACS_SSBS
94
+ arr << FFI::NCurses::ACS_SSBS
95
95
  sarr << "ACS_SSSB"
96
- arr << ACS_SSSB
96
+ arr << FFI::NCurses::ACS_SSSB
97
97
  sarr << "ACS_SSSS"
98
- arr << ACS_SSSS
98
+ arr << FFI::NCurses::ACS_SSSS
99
99
  sarr << "ACS_STERLING"
100
- arr << ACS_STERLING
100
+ arr << FFI::NCurses::ACS_STERLING
101
101
  sarr << "ACS_TTEE"
102
- arr << ACS_TTEE
102
+ arr << FFI::NCurses::ACS_TTEE
103
103
  sarr << "ACS_UARROW"
104
- arr << ACS_UARROW
104
+ arr << FFI::NCurses::ACS_UARROW
105
105
  sarr << "ACS_ULCORNER"
106
- arr << ACS_ULCORNER
106
+ arr << FFI::NCurses::ACS_ULCORNER
107
107
  sarr << "ACS_URCORNER"
108
- arr << ACS_URCORNER
108
+ arr << FFI::NCurses::ACS_URCORNER
109
109
  sarr << "ACS_VLINE"
110
- arr << ACS_VLINE
110
+ arr << FFI::NCurses::ACS_VLINE
111
111
 
112
112
  sarr.each_index { |i|
113
113
  @window.mvaddch r,c, arr[i]
114
- @window.mvprintw r,c+2,"%s", sarr[i]
114
+ @window.mvprintw r,c+2,"%s", :string, sarr[i]
115
115
  r+=1
116
116
  if r == 25
117
117
  r = 1
@@ -123,6 +123,7 @@ sarr.each_index { |i|
123
123
  @window.wrefresh
124
124
  Ncurses::Panel.update_panels
125
125
  while((ch = @window.getchar()) != ?q.getbyte(0) )
126
+ break if ch == 32 || ch == 13
126
127
  str = keycode_tos ch
127
128
  @form.handle_key(ch)
128
129
  @window.wrefresh
@@ -1,6 +1,6 @@
1
1
  #$LOAD_PATH << "/Users/rahul/work/projects/rbcurse/"
2
2
  require 'rubygems'
3
- require 'ncurses'
3
+ #require 'ncurses' # FFI
4
4
  require 'logger'
5
5
  #require 'lib/rbcurse/mapper'
6
6
  #require 'lib/rbcurse/keylabelprinter'
@@ -14,7 +14,7 @@ if $0 == __FILE__
14
14
  begin
15
15
  # Initialize curses
16
16
  VER::start_ncurses # this is initializing colors via ColorMap.setup
17
- $log = Logger.new((File.join(ENV["LOGDIR"] || "./" ,"view.log")))
17
+ $log = Logger.new((File.join(ENV["LOGDIR"] || "./" ,"rbc13.log")))
18
18
  $log.level = Logger::DEBUG
19
19
 
20
20
  @window = VER::Window.root_window
@@ -1,6 +1,6 @@
1
1
  #$LOAD_PATH << "/Users/rahul/work/projects/rbcurse/"
2
2
  require 'rubygems'
3
- require 'ncurses'
3
+ #require 'ncurses' # FFI
4
4
  require 'logger'
5
5
  require 'rbcurse'
6
6
  require 'rbcurse/rtextarea'
@@ -12,7 +12,7 @@ if $0 == __FILE__
12
12
  begin
13
13
  # Initialize curses
14
14
  VER::start_ncurses # this is initializing colors via ColorMap.setup
15
- $log = Logger.new((File.join(ENV["LOGDIR"] || "./" ,"view.log")))
15
+ $log = Logger.new((File.join(ENV["LOGDIR"] || "./" ,"rbc13.log")))
16
16
 
17
17
  $log.level = Logger::DEBUG
18
18
 
@@ -1,5 +1,5 @@
1
1
  # this program tests out various widgets.
2
- require 'ncurses'
2
+ #require 'ncurses' # FFI
3
3
  require 'logger'
4
4
  require 'rbcurse'
5
5
  require 'rbcurse/rwidget'
@@ -21,7 +21,7 @@ if $0 == __FILE__
21
21
  begin
22
22
  # Initialize curses
23
23
  VER::start_ncurses # this is initializing colors via ColorMap.setup
24
- $log = Logger.new((File.join(ENV["LOGDIR"] || "./" ,"view.log")))
24
+ $log = Logger.new((File.join(ENV["LOGDIR"] || "./" ,"rbc13.log")))
25
25
  $log.level = Logger::DEBUG
26
26
 
27
27
  @window = VER::Window.root_window
data/examples/testmenu.rb CHANGED
@@ -12,7 +12,7 @@ if $0 == __FILE__
12
12
  begin
13
13
  # Initialize curses
14
14
  VER::start_ncurses # this is initializing colors via ColorMap.setup
15
- $log = Logger.new((File.join(ENV["LOGDIR"] || "./" ,"view.log")))
15
+ $log = Logger.new((File.join(ENV["LOGDIR"] || "./" ,"rbc13.log")))
16
16
  $log.level = Logger::DEBUG
17
17
 
18
18
  @window = VER::Window.root_window
@@ -12,7 +12,7 @@ if $0 == __FILE__
12
12
  begin
13
13
  # Initialize curses
14
14
  VER::start_ncurses # this is initializing colors via ColorMap.setup
15
- $log = Logger.new((File.join(ENV["LOGDIR"] || "./" ,"view.log")))
15
+ $log = Logger.new((File.join(ENV["LOGDIR"] || "./" ,"rbc13.log")))
16
16
  $log.level = Logger::DEBUG
17
17
 
18
18
  @window = VER::Window.root_window
@@ -99,7 +99,7 @@ if $0 == __FILE__
99
99
  begin
100
100
  # Initialize curses
101
101
  VER::start_ncurses # this is initializing colors via ColorMap.setup
102
- $log = Logger.new((File.join(ENV['LOGDIR'] || "./" ,"view.log")))
102
+ $log = Logger.new((File.join(ENV['LOGDIR'] || "./" ,"rbc13.log")))
103
103
 
104
104
  $log.level = Logger::DEBUG
105
105
 
data/examples/testree.rb CHANGED
@@ -66,27 +66,6 @@ class Tester
66
66
 
67
67
  end
68
68
 
69
-
70
-
71
- ok_button = Button.new @form do
72
- text "+"
73
- name "+"
74
- row 27
75
- col 10
76
- end
77
- #ok_button.command { |form| @vim.weight(@vim.weight + 0.1) }
78
- ok_button.command { @vim.increase_weight }
79
-
80
-
81
- k_button = Button.new @form do
82
- text "-"
83
- name "-"
84
- row 27
85
- col 17
86
- end
87
- #k_button.command { |form| @vim.weight( @vim.weight - 0.1) }
88
- k_button.command { |form| @vim.decrease_weight }
89
-
90
69
  #
91
70
  @help = "F1 to quit. Pass command-line argument 1,2,3,4 #{$0} "
92
71
  RubyCurses::Label.new @form, {'text' => @help, "row" => 1, "col" => 2, "color" => "yellow"}
@@ -112,7 +91,7 @@ include RubyCurses::Utils
112
91
  begin
113
92
  # XXX update with new color and kb
114
93
  VER::start_ncurses # this is initializing colors via ColorMap.setup
115
- $log = Logger.new("view.log")
94
+ $log = Logger.new("rbc13.log")
116
95
  $log.level = Logger::DEBUG
117
96
  n = Tester.new
118
97
  n.run
@@ -1,7 +1,7 @@
1
1
  #$LOAD_PATH << "/Users/rahul/work/projects/rbcurse/"
2
2
  # this program tests out various widgets.
3
3
  require 'rubygems'
4
- require 'ncurses'
4
+ #require 'ncurses' # FFI
5
5
  require 'logger'
6
6
  require 'rbcurse'
7
7
  require 'rbcurse/rwidget'
@@ -23,7 +23,7 @@ if $0 == __FILE__
23
23
  begin
24
24
  # Initialize curses
25
25
  VER::start_ncurses # this is initializing colors via ColorMap.setup
26
- $log = Logger.new((File.join(ENV["LOGDIR"] || "./" ,"view.log")))
26
+ $log = Logger.new((File.join(ENV["LOGDIR"] || "./" ,"rbc13.log")))
27
27
  $log.level = Logger::DEBUG
28
28
 
29
29
  @window = VER::Window.root_window
@@ -1,7 +1,7 @@
1
1
  #$LOAD_PATH << "/Users/rahul/work/projects/rbcurse/"
2
2
  # Creates a scrollpane with a Testwidget (which is a modified TextView class)
3
3
  require 'rubygems'
4
- require 'ncurses'
4
+ #require 'ncurses' # FFI
5
5
  require 'logger'
6
6
  require 'rbcurse'
7
7
  require 'rbcurse/rlistbox'
@@ -13,7 +13,7 @@ if $0 == __FILE__
13
13
  begin
14
14
  # Initialize curses
15
15
  VER::start_ncurses # this is initializing colors via ColorMap.setup
16
- $log = Logger.new((File.join(ENV["LOGDIR"] || "./" ,"view.log")))
16
+ $log = Logger.new((File.join(ENV["LOGDIR"] || "./" ,"rbc13.log")))
17
17
  $log.level = Logger::DEBUG
18
18
 
19
19
  @window = VER::Window.root_window
@@ -1,7 +1,7 @@
1
1
  #$LOAD_PATH << "/Users/rahul/work/projects/rbcurse/"
2
2
  # Creates a scrollpane with a TextView (which is a modified TextView class)
3
3
  require 'rubygems'
4
- require 'ncurses'
4
+ #require 'ncurses' # FFI
5
5
  require 'logger'
6
6
  require 'rbcurse'
7
7
  #require 'rbcurse/rtextview'
@@ -15,7 +15,7 @@ if $0 == __FILE__
15
15
  begin
16
16
  # Initialize curses
17
17
  VER::start_ncurses # this is initializing colors via ColorMap.setup
18
- $log = Logger.new((File.join(ENV["LOGDIR"] || "./" ,"view.log")))
18
+ $log = Logger.new((File.join(ENV["LOGDIR"] || "./" ,"rbc13.log")))
19
19
  $log.level = Logger::DEBUG
20
20
 
21
21
 
@@ -1,7 +1,7 @@
1
1
  #$LOAD_PATH << "/Users/rahul/work/projects/rbcurse/"
2
2
  # Creates a scrollpane with a Testwidget (which is a modified TextView class)
3
3
  require 'rubygems'
4
- require 'ncurses'
4
+ #require 'ncurses' # FFI
5
5
  require 'logger'
6
6
  require 'rbcurse'
7
7
  require 'rbcurse/rtextarea'
@@ -13,7 +13,7 @@ if $0 == __FILE__
13
13
  begin
14
14
  # Initialize curses
15
15
  VER::start_ncurses # this is initializing colors via ColorMap.setup
16
- $log = Logger.new((File.join(ENV["LOGDIR"] || "./" ,"view.log")))
16
+ $log = Logger.new((File.join(ENV["LOGDIR"] || "./" ,"rbc13.log")))
17
17
  $log.level = Logger::DEBUG
18
18
 
19
19
  @window = VER::Window.root_window
@@ -26,7 +26,7 @@
26
26
  #*******************************************************#
27
27
  # Creates a scrollpane with a Table
28
28
  require 'rubygems'
29
- require 'ncurses'
29
+ #require 'ncurses' # FFI
30
30
  require 'logger'
31
31
  require 'rbcurse'
32
32
  require 'rbcurse/rtable'
@@ -38,7 +38,7 @@ if $0 == __FILE__
38
38
  begin
39
39
  # Initialize curses
40
40
  VER::start_ncurses # this is initializing colors via ColorMap.setup
41
- $log = Logger.new((File.join(ENV["LOGDIR"] || "./" ,"view.log")))
41
+ $log = Logger.new((File.join(ENV["LOGDIR"] || "./" ,"rbc13.log")))
42
42
  $log.level = Logger::DEBUG
43
43
 
44
44
  @window = VER::Window.root_window
@@ -1,6 +1,6 @@
1
1
  #$LOAD_PATH << "/Users/rahul/work/projects/rbcurse/"
2
2
  require 'rubygems'
3
- require 'ncurses'
3
+ #require 'ncurses' # FFI
4
4
  require 'logger'
5
5
  require 'rbcurse'
6
6
  require 'rbcurse/rsplitpane'
@@ -16,7 +16,7 @@ if $0 == __FILE__
16
16
  begin
17
17
  # Initialize curses
18
18
  VER::start_ncurses # this is initializing colors via ColorMap.setup
19
- $log = Logger.new((File.join(ENV["LOGDIR"] || "./" ,"view.log")))
19
+ $log = Logger.new((File.join(ENV["LOGDIR"] || "./" ,"rbc13.log")))
20
20
  $log.level = Logger::DEBUG
21
21
 
22
22
  @window = VER::Window.root_window
@@ -1,6 +1,6 @@
1
1
  #$LOAD_PATH << "/Users/rahul/work/projects/rbcurse/"
2
2
  require 'rubygems'
3
- require 'ncurses'
3
+ #require 'ncurses' # FFI
4
4
  require 'logger'
5
5
  require 'rbcurse'
6
6
  require 'rbcurse/rsplitpane'
@@ -12,7 +12,7 @@ if $0 == __FILE__
12
12
  begin
13
13
  # Initialize curses
14
14
  VER::start_ncurses # this is initializing colors via ColorMap.setup
15
- $log = Logger.new((File.join(ENV["LOGDIR"] || "./" ,"view.log")))
15
+ $log = Logger.new((File.join(ENV["LOGDIR"] || "./" ,"rbc13.log")))
16
16
  $log.level = Logger::DEBUG
17
17
 
18
18
  @window = VER::Window.root_window
@@ -30,7 +30,7 @@
30
30
  # Copyright 2010, Rahul Kumar #
31
31
  #*******************************************************#
32
32
  require 'rubygems'
33
- require 'ncurses'
33
+ #require 'ncurses' # FFI
34
34
  require 'logger'
35
35
  require 'rbcurse'
36
36
  require 'rbcurse/rsplitpane'
@@ -44,7 +44,7 @@ if $0 == __FILE__
44
44
  begin
45
45
  # Initialize curses
46
46
  VER::start_ncurses # this is initializing colors via ColorMap.setup
47
- $log = Logger.new((File.join(ENV["LOGDIR"] || "./" ,"view.log")))
47
+ $log = Logger.new((File.join(ENV["LOGDIR"] || "./" ,"rbc13.log")))
48
48
  $log.level = Logger::DEBUG
49
49
 
50
50
  @window = VER::Window.root_window