vedeu 0.4.56 → 0.4.57

Sign up to get free protection for your applications and to get access to all the features.
Files changed (129) hide show
  1. checksums.yaml +4 -4
  2. data/examples/borders_app.rb +22 -24
  3. data/examples/colours_app.rb +4 -6
  4. data/examples/configuration_app.rb +5 -7
  5. data/examples/drb_app.rb +1 -1
  6. data/examples/focus_app.rb +1 -1
  7. data/examples/geometry_app.rb +8 -10
  8. data/examples/hello_world.rb +4 -6
  9. data/examples/material_colours_app.rb +19 -9
  10. data/examples/material_colours_app_20150721.svg +2285 -0
  11. data/examples/panel_app.rb +6 -8
  12. data/examples/typed_commands/typed_commands_app.rb +15 -17
  13. data/examples/view_templates_app/view_templates_app.rb +1 -1
  14. data/lib/vedeu/all.rb +82 -10
  15. data/lib/vedeu/api.rb +34 -14
  16. data/lib/vedeu/application.rb +0 -1
  17. data/lib/vedeu/application/application_controller.rb +0 -1
  18. data/lib/vedeu/application/application_helper.rb +0 -1
  19. data/lib/vedeu/application/application_view.rb +0 -1
  20. data/lib/vedeu/application/controller.rb +0 -1
  21. data/lib/vedeu/application/helper.rb +0 -1
  22. data/lib/vedeu/application/view.rb +0 -1
  23. data/lib/vedeu/bindings/all.rb +0 -1
  24. data/lib/vedeu/bindings/visibility.rb +2 -19
  25. data/lib/vedeu/buffers/buffer.rb +0 -1
  26. data/lib/vedeu/buffers/display_buffer.rb +0 -1
  27. data/lib/vedeu/cli/generator/application.rb +0 -1
  28. data/lib/vedeu/cli/generator/helpers.rb +0 -1
  29. data/lib/vedeu/cli/generator/view.rb +0 -1
  30. data/lib/vedeu/colours/background.rb +0 -1
  31. data/lib/vedeu/colours/colour.rb +0 -1
  32. data/lib/vedeu/colours/colour_translator.rb +0 -1
  33. data/lib/vedeu/colours/foreground.rb +0 -1
  34. data/lib/vedeu/common.rb +0 -1
  35. data/lib/vedeu/configuration/configuration.rb +0 -1
  36. data/lib/vedeu/cursor/cursor.rb +0 -1
  37. data/lib/vedeu/cursor/move.rb +0 -1
  38. data/lib/vedeu/cursor/refresh_cursor.rb +0 -1
  39. data/lib/vedeu/cursor/reposition.rb +0 -1
  40. data/lib/vedeu/distributed/client.rb +2 -0
  41. data/lib/vedeu/distributed/server.rb +2 -0
  42. data/lib/vedeu/distributed/uri.rb +2 -1
  43. data/lib/vedeu/exceptions.rb +0 -7
  44. data/lib/vedeu/geometry/area.rb +0 -1
  45. data/lib/vedeu/geometry/coordinate.rb +0 -1
  46. data/lib/vedeu/geometry/dimension.rb +14 -1
  47. data/lib/vedeu/geometry/geometry.rb +0 -1
  48. data/lib/vedeu/geometry/index_position.rb +0 -1
  49. data/lib/vedeu/geometry/position.rb +0 -1
  50. data/lib/vedeu/geometry/position_index.rb +0 -1
  51. data/lib/vedeu/geometry/position_validator.rb +0 -1
  52. data/lib/vedeu/input/input.rb +0 -1
  53. data/lib/vedeu/input/key.rb +0 -1
  54. data/lib/vedeu/input/keymap.rb +0 -1
  55. data/lib/vedeu/input/mapper.rb +0 -1
  56. data/lib/vedeu/log.rb +0 -1
  57. data/lib/vedeu/main_loop.rb +0 -1
  58. data/lib/vedeu/models/cell.rb +0 -1
  59. data/lib/vedeu/models/char.rb +0 -1
  60. data/lib/vedeu/models/composition.rb +0 -1
  61. data/lib/vedeu/models/escape.rb +0 -1
  62. data/lib/vedeu/models/focus.rb +0 -1
  63. data/lib/vedeu/models/group.rb +37 -15
  64. data/lib/vedeu/models/interface.rb +1 -2
  65. data/lib/vedeu/models/line.rb +0 -1
  66. data/lib/vedeu/models/menu.rb +0 -1
  67. data/lib/vedeu/models/stream.rb +0 -1
  68. data/lib/vedeu/models/toggleable.rb +21 -11
  69. data/lib/vedeu/null/all.rb +0 -1
  70. data/lib/vedeu/null/border.rb +0 -1
  71. data/lib/vedeu/null/buffer.rb +0 -1
  72. data/lib/vedeu/null/generic.rb +0 -1
  73. data/lib/vedeu/null/geometry.rb +0 -1
  74. data/lib/vedeu/null/interface.rb +0 -1
  75. data/lib/vedeu/output/border.rb +0 -1
  76. data/lib/vedeu/output/clear/named_group.rb +3 -2
  77. data/lib/vedeu/output/clear/named_interface.rb +2 -1
  78. data/lib/vedeu/output/compressor.rb +0 -1
  79. data/lib/vedeu/output/html_char.rb +0 -1
  80. data/lib/vedeu/output/output.rb +0 -1
  81. data/lib/vedeu/output/presentation.rb +0 -1
  82. data/lib/vedeu/output/refresh_group.rb +0 -1
  83. data/lib/vedeu/output/render_border.rb +0 -1
  84. data/lib/vedeu/output/renderers/all.rb +0 -1
  85. data/lib/vedeu/output/renderers/escape_sequence.rb +0 -1
  86. data/lib/vedeu/output/renderers/file.rb +0 -1
  87. data/lib/vedeu/output/renderers/html.rb +0 -1
  88. data/lib/vedeu/output/renderers/json.rb +0 -1
  89. data/lib/vedeu/output/renderers/null.rb +0 -1
  90. data/lib/vedeu/output/renderers/renderer_options.rb +0 -1
  91. data/lib/vedeu/output/renderers/terminal.rb +0 -1
  92. data/lib/vedeu/output/renderers/text.rb +0 -1
  93. data/lib/vedeu/output/style.rb +0 -1
  94. data/lib/vedeu/output/text.rb +0 -1
  95. data/lib/vedeu/output/viewport.rb +0 -1
  96. data/lib/vedeu/output/virtual_terminal.rb +0 -1
  97. data/lib/vedeu/output/wordwrap.rb +0 -1
  98. data/lib/vedeu/repositories/collection.rb +0 -7
  99. data/lib/vedeu/repositories/model.rb +0 -1
  100. data/lib/vedeu/repositories/registerable.rb +0 -1
  101. data/lib/vedeu/repositories/repository.rb +0 -1
  102. data/lib/vedeu/repositories/store.rb +0 -1
  103. data/lib/vedeu/templating/directive.rb +1 -1
  104. data/lib/vedeu/templating/helpers.rb +1 -1
  105. data/lib/vedeu/templating/preprocessor.rb +1 -1
  106. data/lib/vedeu/templating/template.rb +1 -1
  107. data/lib/vedeu/traps.rb +0 -1
  108. data/lib/vedeu/version.rb +1 -1
  109. data/test/lib/vedeu/application/controller_test.rb +8 -1
  110. data/test/lib/vedeu/buffers/buffer_test.rb +5 -0
  111. data/test/lib/vedeu/cursor/reposition_test.rb +5 -5
  112. data/test/lib/vedeu/models/group_test.rb +4 -3
  113. data/test/lib/vedeu/models/interface_test.rb +15 -1
  114. data/test/lib/vedeu/null/interface_test.rb +7 -21
  115. data/test/lib/vedeu/output/esc_test.rb +105 -109
  116. metadata +3 -15
  117. data/lib/vedeu/application/all.rb +0 -6
  118. data/lib/vedeu/buffers/all.rb +0 -3
  119. data/lib/vedeu/cli/all.rb +0 -1
  120. data/lib/vedeu/colours/all.rb +0 -7
  121. data/lib/vedeu/configuration/all.rb +0 -3
  122. data/lib/vedeu/cursor/all.rb +0 -7
  123. data/lib/vedeu/distributed/all.rb +0 -15
  124. data/lib/vedeu/events/all.rb +0 -5
  125. data/lib/vedeu/geometry/all.rb +0 -14
  126. data/lib/vedeu/models/all.rb +0 -16
  127. data/lib/vedeu/output/all.rb +0 -21
  128. data/lib/vedeu/output/clear/all.rb +0 -13
  129. data/lib/vedeu/templating/all.rb +0 -13
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 743d4a2661b960f89aa308cee33ba6e0625f76e6
4
- data.tar.gz: 6df290d61f188f90a527fbdc49673b38e8f572dc
3
+ metadata.gz: 1a0da67baa3addb0036a2b6abda7b67388a77a69
4
+ data.tar.gz: a485c5238c12220429d69c2bcd1349d3e6dec625
5
5
  SHA512:
6
- metadata.gz: 2b56f22b2eff13f49f599717e5c1dd8f1902d904965761c1076325cbfd9b2016e57278ab0e1000330e6ef2f358a004ecb9edfbdaf69704e565cf7f767dafad60
7
- data.tar.gz: 779ad640efaab6cc5b7213e1e00b784353816386d892c0835613544f975e6e208b3052b72de5943b7ca56a23d983931d32215078accb6884243d1644382e1dd8
6
+ metadata.gz: 1a172e1281b71465ac807c5345e7807d6d8319e9a1933ebbeafef580ba5fffc330be8d27c35ee3713b82f0d5c7789bb1bd1e2aa124f3a82f1a0aec1b43d3bcb2
7
+ data.tar.gz: 241aad422c08ca44ca1671e78d6e2bab9cd80c27ffd5abe19b3b231a7bad946d8700024d3e1163cdd25d0ec806e48485d2674e6fc17dfc3e8e6930e9fa859fe6
@@ -13,11 +13,9 @@ require 'vedeu'
13
13
  #
14
14
  class VedeuBordersApp
15
15
 
16
- include Vedeu
17
-
18
16
  # Be aware that running an application with debugging enabled will affect
19
17
  # performance.
20
- configure do
18
+ Vedeu.configure do
21
19
  # debug!
22
20
  log '/tmp/vedeu_borders_app.log'
23
21
  raw!
@@ -25,7 +23,7 @@ class VedeuBordersApp
25
23
  standalone!
26
24
  end
27
25
 
28
- interface 'default_border' do
26
+ Vedeu.interface 'default_border' do
29
27
  geometry do
30
28
  x 2
31
29
  y 2
@@ -35,7 +33,7 @@ class VedeuBordersApp
35
33
  colour foreground: '#ffffff', background: '#ff0000'
36
34
  end
37
35
 
38
- interface 'border_off' do
36
+ Vedeu.interface 'border_off' do
39
37
  geometry do
40
38
  x 14
41
39
  y 2
@@ -45,7 +43,7 @@ class VedeuBordersApp
45
43
  colour foreground: '#ffffff', background: '#ff0000'
46
44
  end
47
45
 
48
- interface 'no_top' do
46
+ Vedeu.interface 'no_top' do
49
47
  geometry do
50
48
  x 26
51
49
  y 2
@@ -55,7 +53,7 @@ class VedeuBordersApp
55
53
  colour foreground: '#000000', background: '#ff5500'
56
54
  end
57
55
 
58
- interface 'no_bottom' do
56
+ Vedeu.interface 'no_bottom' do
59
57
  geometry do
60
58
  x 38
61
59
  y 2
@@ -65,7 +63,7 @@ class VedeuBordersApp
65
63
  colour foreground: '#000000', background: '#ff5500'
66
64
  end
67
65
 
68
- interface 'no_left' do
66
+ Vedeu.interface 'no_left' do
69
67
  geometry do
70
68
  x 50
71
69
  y 2
@@ -75,7 +73,7 @@ class VedeuBordersApp
75
73
  colour foreground: '#000000', background: '#ff5500'
76
74
  end
77
75
 
78
- interface 'no_right' do
76
+ Vedeu.interface 'no_right' do
79
77
  geometry do
80
78
  x 62
81
79
  y 2
@@ -85,7 +83,7 @@ class VedeuBordersApp
85
83
  colour foreground: '#000000', background: '#ff5500'
86
84
  end
87
85
 
88
- interface 'custom_corners' do
86
+ Vedeu.interface 'custom_corners' do
89
87
  geometry do
90
88
  x 2
91
89
  y 8
@@ -95,7 +93,7 @@ class VedeuBordersApp
95
93
  colour foreground: '#ffffff', background: '#ff0000'
96
94
  end
97
95
 
98
- interface 'custom_sides' do
96
+ Vedeu.interface 'custom_sides' do
99
97
  geometry do
100
98
  x 14
101
99
  y 8
@@ -105,7 +103,7 @@ class VedeuBordersApp
105
103
  colour foreground: '#ffffff', background: '#ff0000'
106
104
  end
107
105
 
108
- interface 'only_top' do
106
+ Vedeu.interface 'only_top' do
109
107
  geometry do
110
108
  x 26
111
109
  y 8
@@ -115,7 +113,7 @@ class VedeuBordersApp
115
113
  colour foreground: '#ffffff', background: '#0000ff'
116
114
  end
117
115
 
118
- interface 'only_bottom' do
116
+ Vedeu.interface 'only_bottom' do
119
117
  geometry do
120
118
  x 38
121
119
  y 8
@@ -125,7 +123,7 @@ class VedeuBordersApp
125
123
  colour foreground: '#ffffff', background: '#0000ff'
126
124
  end
127
125
 
128
- interface 'only_left' do
126
+ Vedeu.interface 'only_left' do
129
127
  geometry do
130
128
  x 50
131
129
  y 8
@@ -135,7 +133,7 @@ class VedeuBordersApp
135
133
  colour foreground: '#ffffff', background: '#0000ff'
136
134
  end
137
135
 
138
- interface 'only_right' do
136
+ Vedeu.interface 'only_right' do
139
137
  geometry do
140
138
  x 62
141
139
  y 8
@@ -145,7 +143,7 @@ class VedeuBordersApp
145
143
  colour foreground: '#ffffff', background: '#0000ff'
146
144
  end
147
145
 
148
- interface 'custom_colour' do
146
+ Vedeu.interface 'custom_colour' do
149
147
  geometry do
150
148
  x 2
151
149
  y 14
@@ -155,7 +153,7 @@ class VedeuBordersApp
155
153
  colour foreground: '#ffffff', background: '#ff0000'
156
154
  end
157
155
 
158
- interface 'negative' do
156
+ Vedeu.interface 'negative' do
159
157
  geometry do
160
158
  x 14
161
159
  y 14
@@ -166,7 +164,7 @@ class VedeuBordersApp
166
164
  style 'normal'
167
165
  end
168
166
 
169
- keymap '_global_' do
167
+ Vedeu.keymap '_global_' do
170
168
  key('r') { Vedeu.trigger(:_refresh_) }
171
169
 
172
170
  key('q') { Vedeu.trigger(:_exit_) }
@@ -176,24 +174,24 @@ class VedeuBordersApp
176
174
  end
177
175
 
178
176
  # Borders can be defined as part of a view (see below), or standalone.
179
- border 'no_bottom' do
177
+ Vedeu.border 'no_bottom' do
180
178
  foreground '#ffffff'
181
179
  show_bottom false
182
180
  end
183
- border 'no_left' do
181
+ Vedeu.border 'no_left' do
184
182
  foreground '#ffffff'
185
183
  show_left false
186
184
  end
187
- border 'no_right' do
185
+ Vedeu.border 'no_right' do
188
186
  foreground '#ffffff'
189
187
  show_right false
190
188
  end
191
- border 'no_top' do
189
+ Vedeu.border 'no_top' do
192
190
  foreground '#ffffff'
193
191
  show_top false
194
192
  end
195
193
 
196
- renders do
194
+ Vedeu.renders do
197
195
  view('default_border') do
198
196
  border do
199
197
  foreground '#ffffff'
@@ -322,6 +320,6 @@ class VedeuBordersApp
322
320
  Vedeu::Launcher.execute!(argv)
323
321
  end
324
322
 
325
- end
323
+ end # VedeuBordersApp
326
324
 
327
325
  VedeuBordersApp.start(ARGV)
@@ -13,16 +13,14 @@ require 'vedeu'
13
13
  #
14
14
  class VedeuColoursApp
15
15
 
16
- include Vedeu
17
-
18
16
  # Be aware that running an application with debugging enabled will affect
19
17
  # performance.
20
- configure do
18
+ Vedeu.configure do
21
19
  # debug!
22
20
  log '/tmp/vedeu_colours_app.log'
23
21
  end
24
22
 
25
- interface 'colours_256' do
23
+ Vedeu.interface 'colours_256' do
26
24
  geometry do
27
25
  centred!
28
26
  height 16
@@ -30,7 +28,7 @@ class VedeuColoursApp
30
28
  end
31
29
  end
32
30
 
33
- renders do
31
+ Vedeu.renders do
34
32
  view('colours_256') do
35
33
  lines do
36
34
  0.upto(16) do |row|
@@ -45,4 +43,4 @@ class VedeuColoursApp
45
43
  end
46
44
  end
47
45
 
48
- end
46
+ end # VedeuColoursApp
@@ -22,14 +22,12 @@ require 'vedeu'
22
22
  #
23
23
  class VedeuConfigurationApp
24
24
 
25
- include Vedeu
26
-
27
- configure do
25
+ Vedeu.configure do
28
26
  # debug!
29
27
  log '/tmp/vedeu_configuration_app.log'
30
28
  end
31
29
 
32
- interface 'config' do
30
+ Vedeu.interface 'config' do
33
31
  geometry do
34
32
  width 40
35
33
  height 2
@@ -37,7 +35,7 @@ class VedeuConfigurationApp
37
35
  end
38
36
  end
39
37
 
40
- renders do
38
+ Vedeu.renders do
41
39
  view 'config' do
42
40
  lines do
43
41
  line Configuration.log.inspect + ' ' + Process.pid.to_s
@@ -45,7 +43,7 @@ class VedeuConfigurationApp
45
43
  end
46
44
  end
47
45
 
48
- keymap('config') do
46
+ Vedeu.keymap('config') do
49
47
  key(' ') { Vedeu.trigger(:_refresh_, 'config') }
50
48
 
51
49
  key('q') { Vedeu.trigger(:_exit_) }
@@ -58,6 +56,6 @@ class VedeuConfigurationApp
58
56
  Vedeu::Launcher.execute!(argv)
59
57
  end
60
58
 
61
- end
59
+ end # VedeuConfigurationApp
62
60
 
63
61
  VedeuConfigurationApp.start(ARGV)
data/examples/drb_app.rb CHANGED
@@ -115,6 +115,6 @@ class VedeuTestApplication
115
115
  Vedeu::Launcher.execute!(argv, stdin, stdout, stderr, kernel)
116
116
  end
117
117
 
118
- end
118
+ end # VedeuTestApplication
119
119
 
120
120
  VedeuTestApplication.start(ARGV)
@@ -126,6 +126,6 @@ class VedeuFocusApp
126
126
  Vedeu::Launcher.execute!(argv)
127
127
  end
128
128
 
129
- end
129
+ end # VedeuFocusApp
130
130
 
131
131
  VedeuFocusApp.start(ARGV)
@@ -12,16 +12,14 @@ require 'vedeu'
12
12
  #
13
13
  class VedeuGeometryApp
14
14
 
15
- include Vedeu
16
-
17
15
  # Be aware that running an application with debugging enabled will affect
18
16
  # performance.
19
- configure do
17
+ Vedeu.configure do
20
18
  # debug!
21
19
  log '/tmp/vedeu_geometry_app.log'
22
20
  end
23
21
 
24
- interface 'main_interface' do
22
+ Vedeu.interface 'main_interface' do
25
23
  colour foreground: '#ff0000', background: '#000000'
26
24
  cursor!
27
25
 
@@ -34,20 +32,20 @@ class VedeuGeometryApp
34
32
  end
35
33
  end
36
34
 
37
- interface 'second' do
35
+ Vedeu.interface 'second' do
38
36
  colour foreground: '#0000ff', background: '#000000'
39
37
  cursor!
40
38
  end
41
39
 
42
40
  # Geometry can be defined either before or after the interface.
43
- geometry 'second' do
41
+ Vedeu.geometry 'second' do
44
42
  height 8
45
43
  width columns(1)
46
44
  x 12
47
45
  y 2
48
46
  end
49
47
 
50
- keymap('_global_') do
48
+ Vedeu.keymap('_global_') do
51
49
  key(:up, 'k') { Vedeu.trigger(:_cursor_up_) }
52
50
  key(:right, 'l') { Vedeu.trigger(:_cursor_right_) }
53
51
  key(:down, 'j') { Vedeu.trigger(:_cursor_down_) }
@@ -59,7 +57,7 @@ class VedeuGeometryApp
59
57
  key(:tab) { Vedeu.trigger(:_focus_next_) }
60
58
  end
61
59
 
62
- renders do
60
+ Vedeu.renders do
63
61
  view 'second' do
64
62
  border!
65
63
  lines do
@@ -138,12 +136,12 @@ class VedeuGeometryApp
138
136
  end
139
137
  end
140
138
 
141
- focus_by_name 'main_interface'
139
+ Vedeu.focus_by_name 'main_interface'
142
140
 
143
141
  def self.start(argv = ARGV)
144
142
  Vedeu::Launcher.execute!(argv)
145
143
  end
146
144
 
147
- end
145
+ end # VedeuGeometryApp
148
146
 
149
147
  VedeuGeometryApp.start(ARGV)
@@ -16,14 +16,12 @@ require 'vedeu'
16
16
  #
17
17
  class HelloWorldApp
18
18
 
19
- include Vedeu
20
-
21
- configure do
19
+ Vedeu.configure do
22
20
  # debug!
23
21
  log '/tmp/vedeu_hello_world.log'
24
22
  end
25
23
 
26
- interface 'messages' do
24
+ Vedeu.interface 'messages' do
27
25
  background '#000000'
28
26
  foreground '#00ff00'
29
27
  geometry do
@@ -33,7 +31,7 @@ class HelloWorldApp
33
31
  end
34
32
  end
35
33
 
36
- renders do
34
+ Vedeu.renders do
37
35
  view 'messages' do
38
36
  lines do
39
37
  centre 'Hello World!', width: 20
@@ -47,6 +45,6 @@ class HelloWorldApp
47
45
  Vedeu::Launcher.execute!(argv)
48
46
  end
49
47
 
50
- end
48
+ end # HelloWorldApp
51
49
 
52
50
  HelloWorldApp.start(ARGV)
@@ -12,19 +12,22 @@ require 'vedeu'
12
12
  #
13
13
  # ./examples/material_colours_app.rb
14
14
  #
15
+ # Running this application once, and immediately exiting produces the diagram
16
+ # at `./examples/material_colours_app_20150721.svg`. Hopefully this will help
17
+ # you to understand how parts of Vedeu work together. Questions are always
18
+ # welcome at `https://github.com/gavinlaking/vedeu/issues`
19
+ #
15
20
  class VedeuMaterialColoursApp
16
21
 
17
- include Vedeu
18
-
19
22
  # Be aware that running an application with debugging enabled will affect
20
23
  # performance.
21
- configure do
24
+ Vedeu.configure do
22
25
  # debug!
23
26
  log '/tmp/vedeu_material_colours_app.log'
24
27
  # renderers Vedeu::Renderers::File.new
25
28
  end
26
29
 
27
- interface 'main_interface' do
30
+ Vedeu.interface 'main_interface' do
28
31
  border 'main_interface' do
29
32
  colour foreground: '#ffffff', background: :default
30
33
  title 'Rainbow!'
@@ -42,10 +45,17 @@ class VedeuMaterialColoursApp
42
45
 
43
46
  # This interface uses the 'parens' style for the DSL, which sometimes helps
44
47
  # Ruby to understand the values you provide.
45
- interface 'other_interface' do
48
+ #
49
+ # It also uses custom border characters to demonstrate that functionality.
50
+ Vedeu.interface 'other_interface' do
46
51
  border 'other_interface' do
47
52
  colour(foreground: '#ffffff', background: :default)
48
53
  title('Wow!')
54
+ horizontal('-')
55
+ top_right('+')
56
+ top_left('+')
57
+ bottom_right('+')
58
+ bottom_left('+')
49
59
  end
50
60
  colour(foreground: '#ffffff', background: :default)
51
61
  cursor!
@@ -58,7 +68,7 @@ class VedeuMaterialColoursApp
58
68
  zindex(1)
59
69
  end
60
70
 
61
- keymap('_global_') do
71
+ Vedeu.keymap('_global_') do
62
72
  key(:up) { Vedeu.trigger(:_cursor_up_) }
63
73
  key(:right) { Vedeu.trigger(:_cursor_right_) }
64
74
  key(:down) { Vedeu.trigger(:_cursor_down_) }
@@ -93,7 +103,7 @@ class VedeuMaterialColoursApp
93
103
  key('v') { Vedeu.trigger(:_unmaximise_, 'other_interface') }
94
104
  end
95
105
 
96
- renders do
106
+ Vedeu.renders do
97
107
  view 'main_interface' do
98
108
  line { centre 'Red', width: 20, background: '#f44336' }
99
109
  line { centre 'Pink', width: 20, background: '#e91e63' }
@@ -139,12 +149,12 @@ class VedeuMaterialColoursApp
139
149
  end
140
150
  end
141
151
 
142
- focus_by_name 'main_interface'
152
+ Vedeu.focus_by_name 'main_interface'
143
153
 
144
154
  def self.start(argv = ARGV)
145
155
  Vedeu::Launcher.execute!(argv)
146
156
  end
147
157
 
148
- end
158
+ end # VedeuMaterialColoursApp
149
159
 
150
160
  VedeuMaterialColoursApp.start(ARGV)