vedeu 0.8.31 → 0.8.32

Sign up to get free protection for your applications and to get access to all the features.
Files changed (269) hide show
  1. checksums.yaml +4 -4
  2. data/docs/configuration/compression.md +1 -0
  3. data/docs/configuration/cooked.md +1 -1
  4. data/docs/configuration/debug.md +1 -0
  5. data/docs/configuration/drb.md +1 -0
  6. data/docs/configuration/drb_height.md +4 -0
  7. data/docs/configuration/drb_host.md +4 -0
  8. data/docs/configuration/drb_port.md +4 -0
  9. data/docs/configuration/drb_width.md +4 -0
  10. data/docs/configuration/fake.md +4 -0
  11. data/docs/configuration/height.md +3 -0
  12. data/docs/configuration/interactive.md +5 -0
  13. data/docs/configuration/log.md +4 -0
  14. data/docs/configuration/log_except.md +4 -0
  15. data/docs/configuration/log_only.md +4 -0
  16. data/docs/configuration/mouse.md +6 -0
  17. data/docs/configuration/profile.md +5 -0
  18. data/docs/configuration/raw.md +4 -0
  19. data/docs/configuration/renderer.md +4 -0
  20. data/docs/configuration/root.md +4 -0
  21. data/docs/configuration/run_once.md +4 -0
  22. data/docs/configuration/standalone.md +7 -6
  23. data/docs/configuration/stderr.md +4 -0
  24. data/docs/configuration/stdin.md +4 -0
  25. data/docs/configuration/stdout.md +4 -0
  26. data/docs/configuration/terminal_mode.md +3 -0
  27. data/docs/configuration/threaded.md +10 -0
  28. data/docs/configuration/width.md +4 -0
  29. data/docs/dsl/by_method/add_command.md +1 -0
  30. data/docs/dsl/by_method/add_keypress.md +1 -0
  31. data/docs/dsl/by_method/all_commands.md +1 -0
  32. data/docs/dsl/by_method/all_keypresses.md +1 -0
  33. data/docs/dsl/by_method/background_colours.md +1 -0
  34. data/docs/dsl/by_method/bind.md +1 -0
  35. data/docs/dsl/by_method/bind_alias.md +1 -0
  36. data/docs/dsl/by_method/borders.md +1 -0
  37. data/docs/dsl/by_method/bottom.md +1 -0
  38. data/docs/dsl/by_method/bottom_horizontal.md +1 -0
  39. data/docs/dsl/by_method/bottom_left.md +1 -0
  40. data/docs/dsl/by_method/bottom_right.md +1 -0
  41. data/docs/dsl/by_method/bound.md +1 -0
  42. data/docs/dsl/by_method/buffers.md +1 -0
  43. data/docs/dsl/by_method/caption.md +1 -0
  44. data/docs/dsl/by_method/clear.md +1 -0
  45. data/docs/dsl/by_method/clear_by_group.md +1 -0
  46. data/docs/dsl/by_method/clear_by_name.md +1 -0
  47. data/docs/dsl/by_method/clear_content_by_name.md +1 -0
  48. data/docs/dsl/by_method/configuration.md +1 -0
  49. data/docs/dsl/by_method/configure.md +1 -0
  50. data/docs/dsl/by_method/cursor.md +1 -0
  51. data/docs/dsl/by_method/cursors.md +1 -0
  52. data/docs/dsl/by_method/debug.md +1 -0
  53. data/docs/dsl/by_method/disable.md +1 -0
  54. data/docs/dsl/by_method/documents.md +1 -0
  55. data/docs/dsl/by_method/drb_restart.md +1 -0
  56. data/docs/dsl/by_method/drb_start.md +1 -0
  57. data/docs/dsl/by_method/drb_status.md +1 -0
  58. data/docs/dsl/by_method/drb_stop.md +1 -0
  59. data/docs/dsl/by_method/enable.md +1 -0
  60. data/docs/dsl/by_method/esc.md +1 -0
  61. data/docs/dsl/by_method/events.md +1 -0
  62. data/docs/dsl/by_method/exit.md +1 -0
  63. data/docs/dsl/by_method/focus.md +1 -0
  64. data/docs/dsl/by_method/focus_by_name.md +1 -0
  65. data/docs/dsl/by_method/focus_next.md +1 -0
  66. data/docs/dsl/by_method/focus_previous.md +1 -0
  67. data/docs/dsl/by_method/focussed.md +1 -0
  68. data/docs/dsl/by_method/foreground_colours.md +1 -0
  69. data/docs/dsl/by_method/geometries.md +1 -0
  70. data/docs/dsl/by_method/geometry.md +1 -0
  71. data/docs/dsl/by_method/goto.md +1 -0
  72. data/docs/dsl/by_method/group.md +1 -0
  73. data/docs/dsl/by_method/groups.md +1 -0
  74. data/docs/dsl/by_method/height.md +1 -0
  75. data/docs/dsl/by_method/hide_cursor.md +1 -0
  76. data/docs/dsl/by_method/hide_group.md +1 -0
  77. data/docs/dsl/by_method/hide_interface.md +1 -0
  78. data/docs/dsl/by_method/horizontal.md +1 -0
  79. data/docs/dsl/by_method/interface.md +1 -0
  80. data/docs/dsl/by_method/interfaces.md +1 -0
  81. data/docs/dsl/by_method/keymap.md +1 -0
  82. data/docs/dsl/by_method/keymaps.md +1 -0
  83. data/docs/dsl/by_method/keypress.md +1 -0
  84. data/docs/dsl/by_method/last_command.md +1 -0
  85. data/docs/dsl/by_method/last_keypress.md +1 -0
  86. data/docs/dsl/by_method/left.md +1 -0
  87. data/docs/dsl/by_method/left_vertical.md +1 -0
  88. data/docs/dsl/by_method/log.md +1 -0
  89. data/docs/dsl/by_method/log_stderr.md +1 -0
  90. data/docs/dsl/by_method/log_stdout.md +1 -0
  91. data/docs/dsl/by_method/log_timestamp.md +1 -0
  92. data/docs/dsl/by_method/menu.md +1 -0
  93. data/docs/dsl/by_method/menus.md +1 -0
  94. data/docs/dsl/by_method/profile.md +1 -0
  95. data/docs/dsl/by_method/ready.md +1 -0
  96. data/docs/dsl/by_method/refresh.md +1 -0
  97. data/docs/dsl/by_method/renderer.md +1 -0
  98. data/docs/dsl/by_method/renderers.md +1 -0
  99. data/docs/dsl/by_method/resize.md +1 -0
  100. data/docs/dsl/by_method/right.md +1 -0
  101. data/docs/dsl/by_method/right_vertical.md +1 -0
  102. data/docs/dsl/by_method/show_cursor.md +1 -0
  103. data/docs/dsl/by_method/show_group.md +1 -0
  104. data/docs/dsl/by_method/show_interface.md +1 -0
  105. data/docs/dsl/by_method/timer.md +1 -0
  106. data/docs/dsl/by_method/title.md +1 -0
  107. data/docs/dsl/by_method/toggle_cursor.md +1 -0
  108. data/docs/dsl/by_method/toggle_group.md +1 -0
  109. data/docs/dsl/by_method/toggle_interface.md +1 -0
  110. data/docs/dsl/by_method/top.md +1 -0
  111. data/docs/dsl/by_method/top_horizontal.md +1 -0
  112. data/docs/dsl/by_method/top_left.md +1 -0
  113. data/docs/dsl/by_method/top_right.md +1 -0
  114. data/docs/dsl/by_method/trigger.md +1 -0
  115. data/docs/dsl/by_method/unbind.md +1 -0
  116. data/docs/dsl/by_method/unbind_alias.md +1 -0
  117. data/docs/dsl/by_method/vertical.md +1 -0
  118. data/docs/dsl/by_method/view/repositories.md +1 -0
  119. data/docs/dsl/by_method/width.md +1 -0
  120. data/docs/dsl/by_method/write.md +1 -0
  121. data/docs/events/by_name/cleanup.md +1 -0
  122. data/docs/events/by_name/clear.md +1 -0
  123. data/docs/events/by_name/clear_group.md +1 -0
  124. data/docs/events/by_name/clear_view.md +1 -0
  125. data/docs/events/by_name/clear_view_content.md +1 -0
  126. data/docs/events/by_name/command.md +1 -0
  127. data/docs/events/by_name/cursor_bottom.md +1 -0
  128. data/docs/events/by_name/cursor_down.md +1 -0
  129. data/docs/events/by_name/cursor_left.md +1 -0
  130. data/docs/events/by_name/cursor_origin.md +1 -0
  131. data/docs/events/by_name/cursor_position.md +1 -0
  132. data/docs/events/by_name/cursor_reposition.md +1 -0
  133. data/docs/events/by_name/cursor_right.md +1 -0
  134. data/docs/events/by_name/cursor_top.md +1 -0
  135. data/docs/events/by_name/cursor_up.md +1 -0
  136. data/docs/events/by_name/drb_input.md +1 -0
  137. data/docs/events/by_name/drb_restart.md +1 -0
  138. data/docs/events/by_name/drb_retrieve_output.md +1 -0
  139. data/docs/events/by_name/drb_start.md +1 -0
  140. data/docs/events/by_name/drb_status.md +1 -0
  141. data/docs/events/by_name/drb_stop.md +1 -0
  142. data/docs/events/by_name/drb_store_output.md +1 -0
  143. data/docs/events/by_name/editor.md +1 -0
  144. data/docs/events/by_name/editor_delete_character.md +1 -0
  145. data/docs/events/by_name/editor_delete_line.md +1 -0
  146. data/docs/events/by_name/editor_down.md +1 -0
  147. data/docs/events/by_name/editor_insert_character.md +1 -0
  148. data/docs/events/by_name/editor_insert_line.md +1 -0
  149. data/docs/events/by_name/editor_left.md +1 -0
  150. data/docs/events/by_name/editor_right.md +1 -0
  151. data/docs/events/by_name/editor_up.md +1 -0
  152. data/docs/events/by_name/exit.md +1 -0
  153. data/docs/events/by_name/focus_by_name.md +1 -0
  154. data/docs/events/by_name/focus_next.md +1 -0
  155. data/docs/events/by_name/focus_prev.md +1 -0
  156. data/docs/events/by_name/goto.md +1 -0
  157. data/docs/events/by_name/hide_cursor.md +1 -0
  158. data/docs/events/by_name/hide_group.md +1 -0
  159. data/docs/events/by_name/hide_interface.md +1 -0
  160. data/docs/events/by_name/initialize.md +1 -0
  161. data/docs/events/by_name/keypress.md +1 -0
  162. data/docs/events/by_name/log.md +1 -0
  163. data/docs/events/by_name/maximise.md +1 -0
  164. data/docs/events/by_name/menu_bottom.md +1 -0
  165. data/docs/events/by_name/menu_current.md +1 -0
  166. data/docs/events/by_name/menu_deselect.md +1 -0
  167. data/docs/events/by_name/menu_items.md +1 -0
  168. data/docs/events/by_name/menu_next.md +1 -0
  169. data/docs/events/by_name/menu_prev.md +1 -0
  170. data/docs/events/by_name/menu_select.md +1 -0
  171. data/docs/events/by_name/menu_selected.md +1 -0
  172. data/docs/events/by_name/menu_top.md +1 -0
  173. data/docs/events/by_name/menu_view.md +1 -0
  174. data/docs/events/by_name/mode_switch.md +1 -0
  175. data/docs/events/by_name/movement_refresh.md +1 -0
  176. data/docs/events/by_name/refresh.md +1 -0
  177. data/docs/events/by_name/refresh_border.md +1 -0
  178. data/docs/events/by_name/refresh_cursor.md +1 -0
  179. data/docs/events/by_name/refresh_group.md +1 -0
  180. data/docs/events/by_name/refresh_view.md +1 -0
  181. data/docs/events/by_name/refresh_view_content.md +1 -0
  182. data/docs/events/by_name/resize.md +1 -0
  183. data/docs/events/by_name/set_border_caption.md +1 -0
  184. data/docs/events/by_name/set_border_title.md +1 -0
  185. data/docs/events/by_name/show_cursor.md +1 -0
  186. data/docs/events/by_name/show_group.md +1 -0
  187. data/docs/events/by_name/show_interface.md +1 -0
  188. data/docs/events/by_name/toggle_cursor.md +1 -0
  189. data/docs/events/by_name/toggle_group.md +1 -0
  190. data/docs/events/by_name/toggle_interface.md +1 -0
  191. data/docs/events/by_name/unmaximise.md +1 -0
  192. data/docs/events/by_name/view_down.md +1 -0
  193. data/docs/events/by_name/view_left.md +1 -0
  194. data/docs/events/by_name/view_right.md +1 -0
  195. data/docs/events/by_name/view_up.md +1 -0
  196. data/examples/dsl_alignment.rb +1 -1
  197. data/examples/dsl_colours.rb +1 -1
  198. data/examples/dsl_demo_groups.rb +1 -1
  199. data/examples/dsl_editor.rb +1 -1
  200. data/examples/dsl_hello_worlds.rb +1 -1
  201. data/examples/dsl_horizontal_alignment.rb +4 -3
  202. data/examples/dsl_menus.rb +1 -1
  203. data/examples/dsl_vertical_alignment.rb +4 -3
  204. data/examples/views/empty_template.rb +1 -1
  205. data/examples/views/full_screen.rb +1 -1
  206. data/examples/views/misc_view.rb +1 -1
  207. data/examples/views/wordwrap.rb +1 -1
  208. data/integrations/342_streams.rb +1 -1
  209. data/integrations/dsl_app_001.rb +1 -1
  210. data/integrations/dsl_app_002.rb +1 -1
  211. data/integrations/dsl_app_003.rb +1 -1
  212. data/integrations/dsl_app_004.rb +1 -1
  213. data/integrations/dsl_app_005.rb +1 -1
  214. data/integrations/dsl_app_006.rb +1 -1
  215. data/integrations/dsl_app_007.rb +1 -1
  216. data/integrations/dsl_app_008.rb +1 -1
  217. data/integrations/dsl_app_009.rb +1 -1
  218. data/integrations/dsl_app_010.rb +1 -1
  219. data/integrations/dsl_app_011.rb +1 -1
  220. data/integrations/dsl_app_012.rb +1 -1
  221. data/integrations/dsl_app_013.rb +1 -1
  222. data/integrations/dsl_app_014.rb +1 -1
  223. data/integrations/dsl_app_015.rb +1 -1
  224. data/integrations/dsl_app_016.rb +1 -1
  225. data/integrations/dsl_app_017.rb +1 -1
  226. data/integrations/dsl_app_018.rb +1 -1
  227. data/integrations/dsl_app_019.rb +1 -1
  228. data/integrations/dsl_app_020.rb +1 -1
  229. data/integrations/dsl_app_021.rb +1 -1
  230. data/integrations/dsl_app_022.rb +1 -1
  231. data/integrations/dsl_app_030.rb +1 -1
  232. data/integrations/dsl_app_031.rb +1 -1
  233. data/integrations/dsl_app_040.rb +1 -1
  234. data/integrations/dsl_app_041.rb +1 -1
  235. data/integrations/dsl_app_042.rb +1 -1
  236. data/integrations/dsl_app_border_001.rb +1 -1
  237. data/integrations/dsl_app_border_002.rb +1 -1
  238. data/integrations/dsl_app_border_003.rb +1 -1
  239. data/integrations/dsl_app_border_004.rb +1 -1
  240. data/integrations/dsl_app_border_005.rb +1 -1
  241. data/integrations/dsl_app_border_006.rb +1 -1
  242. data/integrations/dsl_app_border_007.rb +1 -1
  243. data/integrations/dsl_app_border_008.rb +1 -1
  244. data/integrations/dsl_app_border_009.rb +1 -1
  245. data/integrations/dsl_app_border_010.rb +1 -1
  246. data/integrations/dsl_app_border_011.rb +1 -1
  247. data/integrations/dsl_app_border_012.rb +1 -1
  248. data/integrations/dsl_app_geometry_001.rb +1 -1
  249. data/integrations/dsl_app_geometry_002.rb +1 -1
  250. data/integrations/dsl_app_geometry_003.rb +1 -1
  251. data/integrations/dsl_app_geometry_004.rb +1 -1
  252. data/integrations/dsl_app_geometry_005.rb +16 -7
  253. data/integrations/expected/dsl_app_geometry_005.out +1 -1
  254. data/lib/vedeu/borders/refresh.rb +1 -1
  255. data/lib/vedeu/output/compressor.rb +1 -19
  256. data/lib/vedeu/output/compressors/all.rb +1 -0
  257. data/lib/vedeu/output/compressors/character.rb +6 -11
  258. data/lib/vedeu/output/compressors/empty.rb +56 -0
  259. data/lib/vedeu/output/compressors/simple.rb +10 -23
  260. data/lib/vedeu/version.rb +1 -1
  261. data/test/lib/vedeu/output/compressors/character_test.rb +5 -5
  262. data/test/lib/vedeu/output/compressors/empty_test.rb +38 -0
  263. data/test/lib/vedeu/output/compressors/simple_test.rb +4 -6
  264. data/test/support/examples/focus_app.rb +1 -1
  265. data/test/support/examples/hello_world.rb +1 -1
  266. data/test/support/examples/material_colours_app.rb +1 -1
  267. data/test/support/examples/view_templates_app/view_templates_app.rb +1 -1
  268. data/test/test_helper.rb +1 -1
  269. metadata +5 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 54d020b1ed4da7b4cf81758fa09f9dfc06112407
4
- data.tar.gz: a09b4f6ac797e2948d01816492dd384fc61c88c3
3
+ metadata.gz: 9c6a63a708b1da36cce817a2cf967c797568f38d
4
+ data.tar.gz: 7d2dacec9712ceec80f1dde0cbe978cb3244ddd1
5
5
  SHA512:
6
- metadata.gz: fd78a43accb8571c469797daeb2f3fd753c11540612a7001e5a67d65066d6b9b55edd97ad943b67e04e4557c39a0d9e3a6d0ffc5b7c1bb7f7f9fc9c0d53d3082
7
- data.tar.gz: 048c82e69c2fd6ae30a142da63ad24109d5a0ad444ef4aa9dc94e389786e62255928117f34eb2a25e5337f8d3bbc131b8edd472da1496e1cdde7215e19288578
6
+ metadata.gz: be12e0fe16084dc19477645d29a26f56e49f647ae81065a448842460a385b820a12d96f35304e0e9c2c2faf25fa7afb97e211fac182ae2deacc76b248325fc30
7
+ data.tar.gz: 380948fa0c9f567df1b3bb776bea188ee075c5d3976e77bf26cc240cfff34e9d3f1ba82471085ef62963ff0c38f8681abb8e3b8d86e39be5f405d61506a1b140
@@ -18,6 +18,7 @@ disable compression.
18
18
  end
19
19
 
20
20
  # Get:
21
+ Vedeu.config.compression?
21
22
  Vedeu.config.compression
22
23
 
23
24
  Note:
@@ -8,4 +8,4 @@ Also, see {Vedeu::Config::API#raw!}
8
8
  end
9
9
 
10
10
  # Get:
11
- Vedeu.config.cooked?
11
+ Vedeu.config.terminal_mode
@@ -22,3 +22,4 @@ Enabling debugging will:
22
22
 
23
23
  # Get:
24
24
  Vedeu.config.debug?
25
+ Vedeu.config.debug
@@ -8,3 +8,4 @@ Sets boolean to run a DRb server.
8
8
 
9
9
  # Get:
10
10
  Vedeu.config.drb?
11
+ Vedeu.config.drb
@@ -1,6 +1,10 @@
1
1
  Sets the height of the fake terminal in the DRb server.
2
2
 
3
+ # Set:
3
4
  Vedeu.configure do
4
5
  drb_height 25
5
6
  # ...
6
7
  end
8
+
9
+ # Get:
10
+ Vedeu.config.drb_height
@@ -1,6 +1,10 @@
1
1
  Sets the hostname or IP address of the DRb server.
2
2
 
3
+ # Set:
3
4
  Vedeu.configure do
4
5
  drb_host 'localhost'
5
6
  # ...
6
7
  end
8
+
9
+ # Get:
10
+ Vedeu.config.drb_host
@@ -1,6 +1,10 @@
1
1
  Sets the port of the DRb server.
2
2
 
3
+ # Set:
3
4
  Vedeu.configure do
4
5
  drb_port 12345
5
6
  # ...
6
7
  end
8
+
9
+ # Get:
10
+ Vedeu.config.drb_port
@@ -1,6 +1,10 @@
1
1
  Sets the width of the fake terminal in the DRb server.
2
2
 
3
+ # Set:
3
4
  Vedeu.configure do
4
5
  drb_width 80
5
6
  # ...
6
7
  end
8
+
9
+ # Get:
10
+ Vedeu.config.drb_width
@@ -1,6 +1,10 @@
1
1
  Sets the terminal mode to `fake`. Default terminal mode is `raw`.
2
2
 
3
+ # Set:
3
4
  Vedeu.configure do
4
5
  fake!
5
6
  # ...
6
7
  end
8
+
9
+ # Get:
10
+ Vedeu.config.terminal_mode
@@ -1,5 +1,6 @@
1
1
  Sets the height of the terminal.
2
2
 
3
+ # Set:
3
4
  Vedeu.configure do
4
5
  height 25
5
6
 
@@ -10,3 +11,5 @@ Sets the height of the terminal.
10
11
  # ...
11
12
  end
12
13
 
14
+ # Get:
15
+ Vedeu.config.height
@@ -2,6 +2,7 @@ Sets boolean to allow user input. The default behaviour of Vedeu is to
2
2
  be interactive. This is the same as setting
3
3
  {Vedeu::Config::API#standalone} to false.
4
4
 
5
+ # Set:
5
6
  # same as `interactive true` or `standalone false`.
6
7
  Vedeu.configure do
7
8
  interactive!
@@ -19,3 +20,7 @@ be interactive. This is the same as setting
19
20
  interactive false
20
21
  # ...
21
22
  end
23
+
24
+ # Get:
25
+ Vedeu.config.interactive?
26
+ Vedeu.config.interactive
@@ -3,6 +3,7 @@ the log file is set to '/tmp/vedeu_bootstrap.log'. Note: On Windows
3
3
  systems, the log directory is determined by the output from
4
4
  `Dir.tmpdir`.
5
5
 
6
+ # Set:
6
7
  # Log messages will be sent to the path given.
7
8
  Vedeu.configure do
8
9
  log '/var/log/vedeu.log'
@@ -15,3 +16,6 @@ systems, the log directory is determined by the output from
15
16
  # ...
16
17
  end
17
18
 
19
+ # Get:
20
+ Vedeu.config.log? # Returns whether logging is enabled
21
+ Vedeu.config.log # Returns the configured log file.
@@ -1,6 +1,7 @@
1
1
  Log specific message types except those given. A complete list of
2
2
  message types can be found at {Vedeu::LOG_TYPES}.
3
3
 
4
+ # Set:
4
5
  Vedeu.configure do
5
6
  log_except :debug, :event
6
7
 
@@ -9,3 +10,6 @@ message types can be found at {Vedeu::LOG_TYPES}.
9
10
 
10
11
  # ...
11
12
  end
13
+
14
+ # Get:
15
+ Vedeu.config.log_except
@@ -1,6 +1,7 @@
1
1
  Only log specific message types. A complete list of message types can
2
2
  be found at {Vedeu::LOG_TYPES}.
3
3
 
4
+ # Set:
4
5
  Vedeu.configure do
5
6
  log_only :debug, :event
6
7
 
@@ -9,3 +10,6 @@ be found at {Vedeu::LOG_TYPES}.
9
10
 
10
11
  # ...
11
12
  end
13
+
14
+ # Get:
15
+ Vedeu.config.log_only
@@ -1,5 +1,6 @@
1
1
  Sets boolean to enable/disable mouse support.
2
2
 
3
+ # Set:
3
4
  Vedeu.configure do
4
5
  mouse! # => same as `mouse true`
5
6
 
@@ -8,4 +9,9 @@ Sets boolean to enable/disable mouse support.
8
9
 
9
10
  mouse false
10
11
 
12
+ # ...
11
13
  end
14
+
15
+ # Get:
16
+ Vedeu.config.mouse?
17
+ Vedeu.config.mouse
@@ -12,6 +12,7 @@ Note:
12
12
  Be aware that running an application with profiling enabled will
13
13
  affect performance considerably.
14
14
 
15
+ # Set:
15
16
  Vedeu.configure do
16
17
  profile!
17
18
  # ...
@@ -21,3 +22,7 @@ affect performance considerably.
21
22
  profile false
22
23
  # ...
23
24
  end
25
+
26
+ # Get:
27
+ Vedeu.config.profile?
28
+ Vedeu.config.profile
@@ -1,7 +1,11 @@
1
1
  Sets the terminal mode to `raw`. Default terminal mode is `raw`. Also,
2
2
  see {Vedeu::Config::API#cooked!}
3
3
 
4
+ # Set:
4
5
  Vedeu.configure do
5
6
  raw!
6
7
  # ...
7
8
  end
9
+
10
+ # Get:
11
+ Vedeu.config.terminal_mode
@@ -2,6 +2,7 @@ Sets the renderers for Vedeu. Each renderer added must have the class
2
2
  method '.render' defined as this will be called when rendering
3
3
  content.
4
4
 
5
+ # Set:
5
6
  Vedeu.configure do
6
7
  renderer MyRenderer
7
8
  # ...
@@ -11,3 +12,6 @@ content.
11
12
  renderers MyRenderer, MyOtherRenderer
12
13
  # ...
13
14
  end
15
+
16
+ # Get:
17
+ Vedeu.config.renderers
@@ -3,7 +3,11 @@ Configure the root class of the client application.
3
3
  Vedeu will execute this controller with action and optional arguments
4
4
  first.
5
5
 
6
+ # Set:
6
7
  Vedeu.configure do
7
8
  root :controller, :action, args
8
9
  # ...
9
10
  end
11
+
12
+ # Get:
13
+ Vedeu.config.root
@@ -2,7 +2,11 @@ Sets boolean to run the Vedeu main application loop once. In effect,
2
2
  using `run_once!` or setting `run_once` to true will allow Vedeu to
3
3
  initialize, run any client application code, cleanup, then terminate.
4
4
 
5
+ # Set:
5
6
  Vedeu.configure do
6
7
  run_once!
7
8
  # ...
8
9
  end
10
+
11
+ # Get:
12
+ Vedeu.config.run_once
@@ -1,20 +1,21 @@
1
1
  Sets boolean to prevent user intervention. This is the same as setting
2
2
  {Vedeu::Config::API#interactive} to false.
3
3
 
4
- # Same as `standalone true` or `interactive false`.
4
+ # Set:
5
5
  Vedeu.configure do
6
- standalone!
6
+ standalone! # Same as `standalone true` or `interactive false`.
7
7
  # ...
8
8
  end
9
9
 
10
- # => Disallow user input.
11
10
  Vedeu.configure do
12
- standalone true
11
+ standalone true # Disallow user input.
13
12
  # ...
14
13
  end
15
14
 
16
- # => Allow user input.
17
15
  Vedeu.configure do
18
- standalone false
16
+ standalone false # Allow user input.
19
17
  # ...
20
18
  end
19
+
20
+ # Get:
21
+ Vedeu.config.standalone
@@ -1,6 +1,10 @@
1
1
  Sets the value of STDERR.
2
2
 
3
+ # Set:
3
4
  Vedeu.configure do
4
5
  stderr IO.console
5
6
  # ...
6
7
  end
8
+
9
+ # Get:
10
+ Vedeu.config.stderr
@@ -1,6 +1,10 @@
1
1
  Sets the value of STDIN.
2
2
 
3
+ # Set:
3
4
  Vedeu.configure do
4
5
  stdin IO.console
5
6
  # ...
6
7
  end
8
+
9
+ # Get:
10
+ Vedeu.config.stdin
@@ -1,6 +1,10 @@
1
1
  Sets the value of STDOUT.
2
2
 
3
+ # Set:
3
4
  Vedeu.configure do
4
5
  stdout IO.console
5
6
  # ...
6
7
  end
8
+
9
+ # Get:
10
+ Vedeu.config.stdout
@@ -1,6 +1,7 @@
1
1
  Sets the terminal mode. Valid values can be either ':cooked', ':fake'
2
2
  or :raw'.
3
3
 
4
+ # Set:
4
5
  Vedeu.configure do
5
6
  terminal_mode :cooked
6
7
 
@@ -21,3 +22,5 @@ or :raw'.
21
22
  # ... some code
22
23
  end
23
24
 
25
+ # Get:
26
+ Vedeu.config.terminal_mode
@@ -1,3 +1,13 @@
1
1
  Instructs Vedeu to use threads to perform certain actions.
2
2
 
3
3
  This can have a performance impact.
4
+
5
+ # Set:
6
+ Vedeu.configure do
7
+ threaded false
8
+ # ...
9
+ end
10
+
11
+ # Get:
12
+ Vedeu.config.threaded?
13
+ Vedeu.config.threaded
@@ -1,5 +1,6 @@
1
1
  Sets the width of the terminal.
2
2
 
3
+ # Set:
3
4
  Vedeu.configure do
4
5
  width 80
5
6
 
@@ -9,3 +10,6 @@ Sets the width of the terminal.
9
10
 
10
11
  # ...
11
12
  end
13
+
14
+ # Get:
15
+ Vedeu.config.width
@@ -1,4 +1,5 @@
1
1
  ### Vedeu.add_command
2
+
2
3
  Add a command (a collection of characters/keypresses from a
3
4
  Vedeu::Editor::Document) to the store. Used by Vedeu internally to
4
5
  store commands entered.
@@ -1,4 +1,5 @@
1
1
  ### Vedeu.add_keypress
2
+
2
3
  Add a keypress to the store. Used by Vedeu internally to store a
3
4
  keypress entered.
4
5
 
@@ -1,4 +1,5 @@
1
1
  ### Vedeu.all_commands
2
+
2
3
  Returns an array of all commands received by Vedeu.
3
4
 
4
5
  Vedeu.all_commands
@@ -1,4 +1,5 @@
1
1
  ### Vedeu.all_keypresses
2
+
2
3
  Returns an array of all keypresses received by Vedeu.
3
4
 
4
5
  Vedeu.all_keypresses
@@ -1,4 +1,5 @@
1
1
  ### Vedeu.background_colours
2
+
2
3
  Manipulate the repository of background colours.
3
4
 
4
5
  Vedeu.background_colours
@@ -1,4 +1,5 @@
1
1
  ### Vedeu.bind
2
+
2
3
  Register an event by name with optional delay (throttling)
3
4
  which when triggered will execute the code contained within
4
5
  the passed block.
@@ -1,4 +1,5 @@
1
1
  ### Vedeu.bind_alias
2
+
2
3
  Add events by name to the alias name group. When an alias is
3
4
  triggered, all the events stored in the group are also triggered.
4
5
 
@@ -1,4 +1,5 @@
1
1
  ### `borders`
2
+
2
3
  Repository method. Access registered borders.
3
4
 
4
5
  Vedeu.borders # [Vedeu::Borders::Repository]
@@ -1,4 +1,5 @@
1
1
  ### `bottom`
2
+
2
3
  Enable/disable the bottom border.
3
4
 
4
5
  Vedeu.border :border_demo do
@@ -1,4 +1,5 @@
1
1
  ### `bottom_horizontal`
2
+
2
3
  Set the character to be used to draw the bottom horizontal
3
4
  part of the border.
4
5
 
@@ -1,4 +1,5 @@
1
1
  ### `bottom_left`
2
+
2
3
  Set the character to be used to draw the bottom left corner of the
3
4
  border.
4
5