vedeu 0.8.10 → 0.8.12

Sign up to get free protection for your applications and to get access to all the features.
Files changed (209) hide show
  1. checksums.yaml +4 -4
  2. data/.yardopts +0 -1
  3. data/docs/api.md +1 -1
  4. data/docs/dsl/by_method/add_command.md +1 -0
  5. data/docs/dsl/by_method/add_keypress.md +1 -0
  6. data/docs/dsl/by_method/all_commands.md +1 -0
  7. data/docs/dsl/by_method/all_keypresses.md +1 -0
  8. data/docs/dsl/by_method/background_colours.md +1 -0
  9. data/docs/dsl/by_method/bind.md +1 -0
  10. data/docs/dsl/by_method/bind_alias.md +1 -0
  11. data/docs/dsl/by_method/borders.md +1 -0
  12. data/docs/dsl/by_method/bottom.md +1 -0
  13. data/docs/dsl/by_method/bottom_horizontal.md +1 -0
  14. data/docs/dsl/by_method/bottom_left.md +1 -0
  15. data/docs/dsl/by_method/bottom_right.md +1 -0
  16. data/docs/dsl/by_method/bound.md +1 -0
  17. data/docs/dsl/by_method/buffer_update.md +4 -1
  18. data/docs/dsl/by_method/buffer_write.md +5 -1
  19. data/docs/dsl/by_method/buffers.md +1 -0
  20. data/docs/dsl/by_method/caption.md +1 -0
  21. data/docs/dsl/by_method/clear.md +1 -0
  22. data/docs/dsl/by_method/clear_by_group.md +1 -0
  23. data/docs/dsl/by_method/clear_by_name.md +1 -0
  24. data/docs/dsl/by_method/clear_content_by_name.md +1 -0
  25. data/docs/dsl/by_method/configuration.md +1 -0
  26. data/docs/dsl/by_method/configure.md +1 -0
  27. data/docs/dsl/by_method/cursor.md +1 -0
  28. data/docs/dsl/by_method/cursors.md +1 -0
  29. data/docs/dsl/by_method/debug.md +1 -0
  30. data/docs/dsl/by_method/direct_write.md +6 -1
  31. data/docs/dsl/by_method/disable.md +1 -0
  32. data/docs/dsl/by_method/documents.md +1 -0
  33. data/docs/dsl/by_method/drb_restart.md +1 -0
  34. data/docs/dsl/by_method/drb_start.md +1 -0
  35. data/docs/dsl/by_method/drb_status.md +1 -0
  36. data/docs/dsl/by_method/drb_stop.md +1 -0
  37. data/docs/dsl/by_method/enable.md +1 -0
  38. data/docs/dsl/by_method/esc.md +50 -0
  39. data/docs/dsl/by_method/events.md +1 -0
  40. data/docs/dsl/by_method/exit.md +1 -0
  41. data/docs/dsl/by_method/focus.md +1 -0
  42. data/docs/dsl/by_method/focus_by_name.md +1 -0
  43. data/docs/dsl/by_method/focus_next.md +1 -0
  44. data/docs/dsl/by_method/focus_previous.md +1 -0
  45. data/docs/dsl/by_method/focussed.md +1 -0
  46. data/docs/dsl/by_method/foreground_colours.md +1 -0
  47. data/docs/dsl/by_method/geometries.md +1 -0
  48. data/docs/dsl/by_method/geometry.md +1 -0
  49. data/docs/dsl/by_method/goto.md +1 -0
  50. data/docs/dsl/by_method/group.md +1 -0
  51. data/docs/dsl/by_method/groups.md +1 -0
  52. data/docs/dsl/by_method/height.md +1 -0
  53. data/docs/dsl/by_method/hide_cursor.md +1 -0
  54. data/docs/dsl/by_method/hide_group.md +1 -0
  55. data/docs/dsl/by_method/hide_interface.md +1 -0
  56. data/docs/dsl/by_method/horizontal.md +1 -0
  57. data/docs/dsl/by_method/interface.md +1 -0
  58. data/docs/dsl/by_method/interfaces.md +1 -0
  59. data/docs/dsl/by_method/keymap.md +1 -0
  60. data/docs/dsl/by_method/keymaps.md +1 -0
  61. data/docs/dsl/by_method/keypress.md +2 -0
  62. data/docs/dsl/by_method/last_command.md +1 -0
  63. data/docs/dsl/by_method/last_keypress.md +1 -0
  64. data/docs/dsl/by_method/left.md +1 -0
  65. data/docs/dsl/by_method/left_vertical.md +1 -0
  66. data/docs/dsl/by_method/log.md +1 -0
  67. data/docs/dsl/by_method/log_stderr.md +1 -0
  68. data/docs/dsl/by_method/log_stdout.md +1 -0
  69. data/docs/dsl/by_method/log_timestamp.md +1 -0
  70. data/docs/dsl/by_method/menu.md +1 -0
  71. data/docs/dsl/by_method/menus.md +1 -0
  72. data/docs/dsl/by_method/profile.md +1 -0
  73. data/docs/dsl/by_method/ready.md +1 -0
  74. data/docs/dsl/by_method/refresh.md +1 -0
  75. data/docs/dsl/by_method/render_output.md +5 -1
  76. data/docs/dsl/by_method/renderer.md +1 -0
  77. data/docs/dsl/by_method/renderers.md +1 -0
  78. data/docs/dsl/by_method/resize.md +1 -0
  79. data/docs/dsl/by_method/right.md +1 -0
  80. data/docs/dsl/by_method/right_vertical.md +1 -0
  81. data/docs/dsl/by_method/show_cursor.md +1 -0
  82. data/docs/dsl/by_method/show_group.md +1 -0
  83. data/docs/dsl/by_method/show_interface.md +1 -0
  84. data/docs/dsl/by_method/timer.md +1 -0
  85. data/docs/dsl/by_method/title.md +1 -0
  86. data/docs/dsl/by_method/toggle_cursor.md +1 -0
  87. data/docs/dsl/by_method/toggle_group.md +1 -0
  88. data/docs/dsl/by_method/toggle_interface.md +1 -0
  89. data/docs/dsl/by_method/top.md +1 -0
  90. data/docs/dsl/by_method/top_horizontal.md +1 -0
  91. data/docs/dsl/by_method/top_left.md +1 -0
  92. data/docs/dsl/by_method/top_right.md +1 -0
  93. data/docs/dsl/by_method/trigger.md +1 -0
  94. data/docs/dsl/by_method/unbind.md +1 -0
  95. data/docs/dsl/by_method/unbind_alias.md +1 -0
  96. data/docs/dsl/by_method/vertical.md +1 -0
  97. data/docs/dsl/by_method/width.md +1 -0
  98. data/docs/dsl/by_method/write.md +1 -0
  99. data/docs/dsl_elements.md +107 -100
  100. data/examples/dsl_alignment.rb +1 -1
  101. data/examples/dsl_colours.rb +1 -1
  102. data/examples/dsl_editor.rb +1 -1
  103. data/examples/dsl_horizontal_alignment.rb +1 -1
  104. data/examples/dsl_vertical_alignment.rb +1 -1
  105. data/examples/views/misc_view.rb +1 -1
  106. data/lib/vedeu/application/application_controller.rb +2 -0
  107. data/lib/vedeu/application/application_view.rb +2 -0
  108. data/lib/vedeu/borders/dsl.rb +1 -0
  109. data/lib/vedeu/borders/repository.rb +1 -0
  110. data/lib/vedeu/buffers/empty.rb +1 -0
  111. data/lib/vedeu/buffers/repository.rb +1 -0
  112. data/lib/vedeu/buffers/terminal.rb +3 -1
  113. data/lib/vedeu/cells/border.rb +0 -5
  114. data/lib/vedeu/cells/char.rb +0 -5
  115. data/lib/vedeu/cells/clear.rb +0 -5
  116. data/lib/vedeu/cells/cursor.rb +0 -5
  117. data/lib/vedeu/cells/empty.rb +0 -5
  118. data/lib/vedeu/cells/escape.rb +0 -5
  119. data/lib/vedeu/cells/support/html.rb +2 -0
  120. data/lib/vedeu/colours/backgrounds.rb +1 -0
  121. data/lib/vedeu/colours/foregrounds.rb +1 -0
  122. data/lib/vedeu/common.rb +0 -9
  123. data/lib/vedeu/configuration/configuration.rb +5 -0
  124. data/lib/vedeu/cursors/cursor.rb +3 -0
  125. data/lib/vedeu/cursors/repository.rb +2 -0
  126. data/lib/vedeu/distributed/server.rb +4 -0
  127. data/lib/vedeu/dsl/helpers/attributes.rb +4 -0
  128. data/lib/vedeu/dsl/views.rb +3 -0
  129. data/lib/vedeu/editor/repository.rb +1 -0
  130. data/lib/vedeu/esc/background.rb +2 -0
  131. data/lib/vedeu/esc/foreground.rb +2 -0
  132. data/lib/vedeu/events/aliases.rb +2 -0
  133. data/lib/vedeu/events/all.rb +1 -1
  134. data/lib/vedeu/events/event.rb +4 -1
  135. data/lib/vedeu/events/{collection.rb → events.rb} +3 -2
  136. data/lib/vedeu/events/repository.rb +4 -1
  137. data/lib/vedeu/events/trigger.rb +3 -0
  138. data/lib/vedeu/geometries/dsl/dsl.rb +1 -0
  139. data/lib/vedeu/geometries/repository.rb +1 -0
  140. data/lib/vedeu/groups/clear.rb +1 -0
  141. data/lib/vedeu/groups/dsl.rb +1 -0
  142. data/lib/vedeu/groups/group.rb +3 -0
  143. data/lib/vedeu/groups/repository.rb +1 -0
  144. data/lib/vedeu/input/capture.rb +1 -1
  145. data/lib/vedeu/input/dsl.rb +1 -0
  146. data/lib/vedeu/input/mapper.rb +1 -0
  147. data/lib/vedeu/input/read.rb +1 -0
  148. data/lib/vedeu/input/repository.rb +1 -0
  149. data/lib/vedeu/input/store.rb +6 -0
  150. data/lib/vedeu/interfaces/clear.rb +3 -1
  151. data/lib/vedeu/interfaces/dsl.rb +1 -0
  152. data/lib/vedeu/interfaces/interface.rb +3 -0
  153. data/lib/vedeu/interfaces/repository.rb +1 -0
  154. data/lib/vedeu/logging/clock_time.rb +1 -0
  155. data/lib/vedeu/logging/debug.rb +2 -0
  156. data/lib/vedeu/logging/log.rb +4 -0
  157. data/lib/vedeu/logging/timer.rb +1 -0
  158. data/lib/vedeu/menus/menu.rb +1 -0
  159. data/lib/vedeu/menus/repository.rb +1 -0
  160. data/lib/vedeu/models/focus.rb +6 -0
  161. data/lib/vedeu/output/all.rb +1 -0
  162. data/lib/vedeu/output/compressor.rb +17 -104
  163. data/lib/vedeu/output/compressor_cache.rb +43 -20
  164. data/lib/vedeu/output/compressors/all.rb +26 -0
  165. data/lib/vedeu/output/compressors/character.rb +105 -0
  166. data/lib/vedeu/output/compressors/simple.rb +67 -0
  167. data/lib/vedeu/output/output.rb +30 -24
  168. data/lib/vedeu/output/write.rb +1 -0
  169. data/lib/vedeu/renderers/all.rb +1 -0
  170. data/lib/vedeu/renderers/options.rb +1 -1
  171. data/lib/vedeu/renderers/terminal.rb +8 -7
  172. data/lib/vedeu/repositories/storage.rb +2 -0
  173. data/lib/vedeu/runtime/application.rb +15 -2
  174. data/lib/vedeu/runtime/flags.rb +4 -0
  175. data/lib/vedeu/runtime/router.rb +1 -0
  176. data/lib/vedeu/sentence.rb +2 -0
  177. data/lib/vedeu/support/point.rb +2 -0
  178. data/lib/vedeu/terminal/terminal.rb +1 -0
  179. data/lib/vedeu/version.rb +1 -1
  180. data/lib/vedeu/views/all.rb +2 -0
  181. data/lib/vedeu/views/composition.rb +5 -1
  182. data/lib/vedeu/views/line.rb +2 -0
  183. data/lib/vedeu/views/stream.rb +2 -0
  184. data/lib/vedeu/views/view.rb +3 -1
  185. data/test/lib/vedeu/cells/border_test.rb +0 -6
  186. data/test/lib/vedeu/cells/char_test.rb +0 -6
  187. data/test/lib/vedeu/cells/clear_test.rb +0 -6
  188. data/test/lib/vedeu/cells/cursor_test.rb +0 -4
  189. data/test/lib/vedeu/cells/empty_test.rb +0 -6
  190. data/test/lib/vedeu/cells/escape_test.rb +0 -4
  191. data/test/lib/vedeu/common_test.rb +0 -10
  192. data/test/lib/vedeu/events/{collection_test.rb → events_test.rb} +3 -3
  193. data/test/lib/vedeu/events/repository_test.rb +1 -1
  194. data/test/lib/vedeu/output/compressor_cache_test.rb +87 -63
  195. data/test/lib/vedeu/output/compressor_test.rb +31 -8
  196. data/test/lib/vedeu/output/compressors/character_test.rb +40 -0
  197. data/test/lib/vedeu/output/compressors/simple_test.rb +42 -0
  198. data/test/lib/vedeu/repositories/storage_test.rb +2 -0
  199. data/test/lib/vedeu/sentence_test.rb +2 -0
  200. data/test/lib/vedeu/support/point_test.rb +2 -0
  201. data/test/support/coverage.rb +2 -0
  202. data/test/support/examples/drb_app.rb +2 -0
  203. data/test/support/examples/focus_app.rb +2 -0
  204. data/test/support/examples/hello_world.rb +2 -0
  205. data/test/support/examples/material_colours_app.rb +7 -4
  206. data/test/support/examples/view_templates_app/view_templates_app.rb +2 -0
  207. data/test/support/ttyrec.rb +2 -0
  208. data/test/support/who.rb +2 -0
  209. metadata +13 -5
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2b0005acf22666df61aa974c5fa63a7a2efe5e8b
4
- data.tar.gz: 1534526ad0f0118be2c7d56513bc879a8d3da466
3
+ metadata.gz: 0bb5fc66d38ef9dbbdad8ea2209c510b335a4fb8
4
+ data.tar.gz: da7ea21b8fc9004bd0db6661b89b526cc40a10ce
5
5
  SHA512:
6
- metadata.gz: 19ef391ed3888dde03e08ca67767adb96d46a623d1b7a472b53eb55dc3bf6835caaf790610a88275b16162c79bad110e0338a122dff7ebb2bdd648fd530c7af2
7
- data.tar.gz: 7cae3f72bfc99f04dbd03dc9b6f4b20e620bb18d3850395da822b506856b6a61b2c98095fa33f338825d90c87d4203887212d66abcef100e321b7f008dad6e86
6
+ metadata.gz: 4b3cf2c29c24ddf35b1da2926b8d172035c3592e95e00f2ec589bc0d82c373b3d4471b1df6695afa15097f5e483c2cf3689c82e3db83271126d730c254895cc7
7
+ data.tar.gz: cf9b359cf05f70b9ea6093712fc57efae2379e6864a8311f64e6c0896b86441d2629e70b4f9683d7f7945826c57c5d494a2e7e51410c51135bed9b469c975733
data/.yardopts CHANGED
@@ -1,6 +1,5 @@
1
1
  --private
2
2
  --protected
3
- --embed-mixins
4
3
  --tag api_method:"API Method"
5
4
  --tag api_event:"API Event"
6
5
  -
data/docs/api.md CHANGED
@@ -143,7 +143,7 @@ Repository method. Access registered events.
143
143
 
144
144
  Vedeu.events # [Vedeu::Events::Repository]
145
145
 
146
- Vedeu.events.all # [Array<Vedeu::Events::Collection>]
146
+ Vedeu.events.all # [Array<Vedeu::Events::Events>]
147
147
 
148
148
  ### Vedeu.foreground_colours
149
149
 
@@ -1,3 +1,4 @@
1
+ ### Vedeu.add_command
1
2
  Add a command (a collection of characters/keypresses from a
2
3
  Vedeu::Editor::Document) to the store. Used by Vedeu internally to
3
4
  store commands entered.
@@ -1,3 +1,4 @@
1
+ ### Vedeu.add_keypress
1
2
  Add a keypress to the store. Used by Vedeu internally to store a
2
3
  keypress entered.
3
4
 
@@ -1,3 +1,4 @@
1
+ ### Vedeu.all_commands
1
2
  Returns an array of all commands received by Vedeu.
2
3
 
3
4
  Vedeu.all_commands
@@ -1,3 +1,4 @@
1
+ ### Vedeu.all_keypresses
1
2
  Returns an array of all keypresses received by Vedeu.
2
3
 
3
4
  Vedeu.all_keypresses
@@ -1,3 +1,4 @@
1
+ ### Vedeu.background_colours
1
2
  Manipulate the repository of background colours.
2
3
 
3
4
  Vedeu.background_colours
@@ -1,3 +1,4 @@
1
+ ### Vedeu.bind
1
2
  Register an event by name with optional delay (throttling)
2
3
  which when triggered will execute the code contained within
3
4
  the passed block.
@@ -1,3 +1,4 @@
1
+ ### Vedeu.bind_alias
1
2
  Add events by name to the alias name group. When an alias is
2
3
  triggered, all the events stored in the group are also triggered.
3
4
 
@@ -1,3 +1,4 @@
1
+ ### `borders`
1
2
  Repository method. Access registered borders.
2
3
 
3
4
  Vedeu.borders # [Vedeu::Borders::Repository]
@@ -1,3 +1,4 @@
1
+ ### `bottom`
1
2
  Enable/disable the bottom border.
2
3
 
3
4
  Vedeu.border :border_demo do
@@ -1,3 +1,4 @@
1
+ ### `bottom_horizontal`
1
2
  Set the character to be used to draw the bottom horizontal
2
3
  part of the border.
3
4
 
@@ -1,3 +1,4 @@
1
+ ### `bottom_left`
1
2
  Set the character to be used to draw the bottom left corner of the
2
3
  border.
3
4
 
@@ -1,3 +1,4 @@
1
+ ### `bottom_right`
1
2
  Set the character to be used to draw the bottom right corner
2
3
  of the border.
3
4
 
@@ -1,3 +1,4 @@
1
+ ### Vedeu.bound?
1
2
  Check if an event by name has been registered.
2
3
 
3
4
  Vedeu.bound?(:some_event)
@@ -1,3 +1,6 @@
1
- Write the given output to the configured or default renderers.
1
+ ### Vedeu.buffer_update
2
+
3
+ Update the terminal buffer with the given output ready to be rendered
4
+ by the configured or default renderers.
2
5
 
3
6
  Vedeu.buffer_update(output)
@@ -1,3 +1,7 @@
1
- Write the given output to the configured or default renderers.
1
+ ### Vedeu.buffer_write
2
+
3
+ Write the given output to the terminal buffer. Once written, the
4
+ terminal buffer is then refreshed- sending its contents to the
5
+ configured or default renderers.
2
6
 
3
7
  Vedeu.buffer_write(output)
@@ -1,3 +1,4 @@
1
+ ### Vedeu.buffers
1
2
  Repository method. Access registered borders.
2
3
 
3
4
  Vedeu.buffers # [Vedeu::Buffers::Repository]
@@ -1,3 +1,4 @@
1
+ ### `caption`
1
2
  If you have you are showing a bottom border, you could add a caption.
2
3
 
3
4
  Vedeu.border :border_demo do
@@ -1,3 +1,4 @@
1
+ ### Vedeu.clear
1
2
  Clears the whole terminal space.
2
3
 
3
4
  Vedeu.clear
@@ -1 +1,2 @@
1
+ ### Vedeu.clear_by_group
1
2
  @todo Add more documentation.
@@ -1 +1,2 @@
1
+ ### Vedeu.clear_by_name
1
2
  @todo Add more documentation.
@@ -1 +1,2 @@
1
+ ### Vedeu.clear_content_by_name
1
2
  @todo Add more documentation.
@@ -1,3 +1,4 @@
1
+ ### Vedeu.configuration
1
2
  Returns the configuration singleton.
2
3
 
3
4
  Append configuration methods to access the configuration variable.
@@ -1,3 +1,4 @@
1
+ ### Vedeu.configure
1
2
  Provides the mechanism to configure Vedeu. If the client application
2
3
  sets options, override the defaults with those.
3
4
 
@@ -1,3 +1,4 @@
1
+ ### Vedeu.cursor
1
2
  Fetch the cursor of the currently focussed interface/view.
2
3
 
3
4
  Vedeu.cursor
@@ -1,3 +1,4 @@
1
+ ### Vedeu.cursors
1
2
  Manipulate the repository of cursors.
2
3
 
3
4
  Vedeu.cursors
@@ -1,3 +1,4 @@
1
+ ### Vedeu.debug
1
2
  Drop into a debugging session within a running client application,
2
3
  courtesy of 'pry'. Will raise an exception if 'pry' is not available.
3
4
 
@@ -1,3 +1,8 @@
1
- Write the given output to the configured or default renderers.
1
+ ### Vedeu.direct_write
2
+
3
+ Write the given output directly to the configured or default
4
+ renderers. Using this method will not write the output to the terminal
5
+ buffer. It is used mainly for sending individual escape sequences to
6
+ the terminal- such as those which hide and show the cursor.
2
7
 
3
8
  Vedeu.direct_write(output)
@@ -1,3 +1,4 @@
1
+ ### `disable!`
1
2
  Disable the border:
2
3
 
3
4
  Vedeu.border :border_demo do
@@ -1 +1,2 @@
1
+ ### Vedeu.documents
1
2
  @todo Add more documentation.
@@ -1 +1,2 @@
1
+ ### Vedeu.drb_restart
1
2
  @todo Add more documentation.
@@ -1 +1,2 @@
1
+ ### Vedeu.drb_start
1
2
  @todo Add more documentation.
@@ -1 +1,2 @@
1
+ ### Vedeu.drb_status
1
2
  @todo Add more documentation.
@@ -1 +1,2 @@
1
+ ### Vedeu.drb_stop
1
2
  @todo Add more documentation.
@@ -1,3 +1,4 @@
1
+ ### `enable!`
1
2
  Enable the border:
2
3
  (Borders are enabled by default when defined for an interface).
3
4
 
@@ -0,0 +1,50 @@
1
+ ### Vedeu.esc
2
+ Provides access to various escape sequences defined by Vedeu.
3
+
4
+ #### Colour escape sequences
5
+ The examples below show two ways to use the escape sequences defined
6
+ by Vedeu.
7
+
8
+ - When a block is given, the background or foreground is reset back to
9
+ the default background or foreground when the block exits.
10
+ - When a block is given, we can nest.
11
+ - When a block is not given, the escape sequence for the respective
12
+ background or foreground is returned.
13
+
14
+ ```ruby
15
+ # Produces the `\e[31m` foreground escape sequence for 'red'.
16
+ Vedeu.esc.red
17
+
18
+ # Produces `\e[32mgrass\e[39m`; effectively rendering the word
19
+ # 'grass' as green, and returning to the default terminal
20
+ # foreground colour.
21
+ Vedeu.esc.green { 'grass' }
22
+
23
+ # Produces `\e[31mred \e32mgreen\e[39m\e[39m`; as nesting is
24
+ # permitted with these directives.
25
+ Vedeu.esc.red { 'red ' + Vedeu.esc.green { 'green' } }
26
+ ```
27
+
28
+ - Valid named colours are:
29
+
30
+ ```ruby
31
+ | Foreground | Code | Background | Code |
32
+ |---------------|------|------------------|------|
33
+ | black | 30 | on_black | 40 |
34
+ | red | 31 | on_red | 41 |
35
+ | green | 32 | on_green | 42 |
36
+ | yellow | 33 | on_yellow | 43 |
37
+ | blue | 34 | on_blue | 44 |
38
+ | magenta | 35 | on_magenta | 45 |
39
+ | cyan | 36 | on_cyan | 46 |
40
+ | light_grey | 37 | on_light_grey | 47 |
41
+ | default | 39 | on_default | 49 |
42
+ | dark_grey | 90 | on_dark_grey | 100 |
43
+ | light_red | 91 | on_light_red | 101 |
44
+ | light_green | 92 | on_light_green | 102 |
45
+ | light_yellow | 93 | on_light_yellow | 103 |
46
+ | light_blue | 94 | on_light_blue | 104 |
47
+ | light_magenta | 95 | on_light_magenta | 105 |
48
+ | light_cyan | 96 | on_light_cyan | 106 |
49
+ | white | 97 | on_white | 107 |
50
+ ```
@@ -1 +1,2 @@
1
+ ### Vedeu.events
1
2
  @todo Add more documentation.
@@ -1 +1,2 @@
1
+ ### Vedeu.exit
1
2
  @todo Add more documentation.
@@ -1 +1,2 @@
1
+ ### Vedeu.focus
1
2
  @todo Add more documentation.
@@ -1,3 +1,4 @@
1
+ ### Vedeu.focus_by_name
1
2
  Instruct Vedeu to focus the view with the given name.
2
3
 
3
4
  @todo Add more documentation
@@ -1,3 +1,4 @@
1
+ ### Vedeu.focus_next
1
2
  Instruct Vedeu to focus the next visible view.
2
3
 
3
4
  Vedeu.focus_next
@@ -1,3 +1,4 @@
1
+ ### Vedeu.focus_previous
1
2
  Instruct Vedeu to focus the previous visible view.
2
3
 
3
4
  Vedeu.focus_previous
@@ -1 +1,2 @@
1
+ ### Vedeu.focussed
1
2
  @todo Add more documentation.
@@ -1,3 +1,4 @@
1
+ ### Vedeu.foreground_colours
1
2
  Manipulate the repository of foreground colours.
2
3
 
3
4
  Vedeu.foreground_colours
@@ -1 +1,2 @@
1
+ ### Vedeu.geometries
1
2
  @todo Add more documentation.
@@ -1,3 +1,4 @@
1
+ ### Vedeu.geometry
1
2
  Specify the geometry of an interface or view with a simple DSL.
2
3
 
3
4
  # Standalone (preferred):
@@ -1,3 +1,4 @@
1
+ ### Vedeu.goto
1
2
  Instruct Vedeu to load the client application controller action with
2
3
  parameters.
3
4
 
@@ -1 +1,2 @@
1
+ ### Vedeu.group
1
2
  @todo Add more documentation.
@@ -1 +1,2 @@
1
+ ### Vedeu.group
1
2
  @todo Add more documentation.
@@ -1,3 +1,4 @@
1
+ ### Vedeu.height
1
2
  Returns the total height (number of rows/lines) of the current
2
3
  terminal.
3
4
 
@@ -1 +1,2 @@
1
+ ### Vedeu.hide_cursor
1
2
  @todo Add more documentation.
@@ -1 +1,2 @@
1
+ ### Vedeu.hide_group
1
2
  @todo Add more documentation.
@@ -1 +1,2 @@
1
+ ### Vedeu.hide_interface
1
2
  @todo Add more documentation.
@@ -1,3 +1,4 @@
1
+ ### `horizontal`
1
2
  Set the character to be used to draw a horizontal part of the border.
2
3
 
3
4
  Vedeu.border :border_demo do
@@ -1 +1,2 @@
1
+ ### Vedeu.interface
1
2
  @todo Add more documentation.
@@ -1 +1,2 @@
1
+ ### Vedeu.interfaces
1
2
  @todo Add more documentation.
@@ -1 +1,2 @@
1
+ ### Vedeu.keymap
1
2
  @todo Add more documentation.
@@ -1 +1,2 @@
1
+ ### Vedeu.keymaps
1
2
  @todo Add more documentation.
@@ -0,0 +1,2 @@
1
+ ### Vedeu.keypress
2
+ @todo Add more documentation.
@@ -1,3 +1,4 @@
1
+ ### Vedeu.last_command
1
2
  Access the last command stored. If no commands have been entered since
2
3
  the client application started, then this will return nil.
3
4
 
@@ -1,3 +1,4 @@
1
+ ### Vedeu.last_keypress
1
2
  Access the last keypress stored. If no keys have been pressed since
2
3
  the client application started, then this will return nil.
3
4
 
@@ -1,3 +1,4 @@
1
+ ### `left`
1
2
  Enable/disable the left border.
2
3
 
3
4
  Vedeu.border :border_demo do
@@ -1,3 +1,4 @@
1
+ ### `left_vertical`
1
2
  Set the character to be used to draw the left vertical part of
2
3
  the border.
3
4
 
@@ -1 +1,2 @@
1
+ ### Vedeu.log
1
2
  @todo Add more documentation.
@@ -1,3 +1,4 @@
1
+ ### Vedeu.log_stderr
1
2
  Write a message to STDERR. Will also attempt to write to the log file
2
3
  if configured for later reference.
3
4
 
@@ -1,3 +1,4 @@
1
+ ### Vedeu.log_stdout
1
2
  Write a message to STDOUT. Will also attempt to write to the log file
2
3
  if configured for later reference.
3
4
 
@@ -1,3 +1,4 @@
1
+ ### Vedeu.log_timestamp
1
2
  Returns a formatted timestamp indicating the number of seconds the
2
3
  client application has been running.
3
4
 
@@ -1 +1,2 @@
1
+ ### Vedeu.menu
1
2
  @todo Add more documentation.
@@ -1 +1,2 @@
1
+ ### Vedeu.menus
1
2
  @todo Add more documentation.
@@ -1,3 +1,4 @@
1
+ ### Vedeu.profile
1
2
  Allow debugging via the creation of stack traces courtesy of
2
3
  'ruby-prof'. Will raise an exception if 'ruby-prof' is not available.
3
4
 
@@ -1 +1,2 @@
1
+ ### Vedeu.ready
1
2
  @todo Add more documentation.
@@ -1,3 +1,4 @@
1
+ ### Vedeu.refresh
1
2
  Send the cells to the renderer and return the rendered result.
2
3
 
3
4
  Vedeu.refresh
@@ -1,3 +1,7 @@
1
- Write the given output to the configured or default renderers.
1
+ ### Vedeu.render_output
2
+
3
+ When the given output is an escape sequence, it is directly written to
4
+ the terminal, bypassing the buffer. Otherwise, it is written to the
5
+ terminal buffer, and then the terminal buffer is refreshed.
2
6
 
3
7
  Vedeu.render_output(output)
@@ -1 +1,2 @@
1
+ ### Vedeu.renderer
1
2
  @todo Add more documentation.
@@ -1 +1,2 @@
1
+ ### Vedeu.renderers
1
2
  @todo Add more documentation.
@@ -1,3 +1,4 @@
1
+ ### Vedeu.resize
1
2
  When the terminal emit the 'SIGWINCH' signal, Vedeu can intercept this
2
3
  and attempt to redraw the current interface with varying degrees of
3
4
  success. Can also be used to simulate a terminal resize.
@@ -1,3 +1,4 @@
1
+ ### `right`
1
2
  Enable/disable the right border.
2
3
 
3
4
  Vedeu.border :border_demo do
@@ -1,3 +1,4 @@
1
+ ### `right_vertical`
1
2
  Set the character to be used to draw the right vertical part
2
3
  of the border.
3
4
 
@@ -1 +1,2 @@
1
+ ### Vedeu.show_cursor
1
2
  @todo Add more documentation.
@@ -1 +1,2 @@
1
+ ### Vedeu.show_group
1
2
  @todo Add more documentation.
@@ -1 +1,2 @@
1
+ ### Vedeu.show_interface
1
2
  @todo Add more documentation.
@@ -1,3 +1,4 @@
1
+ ### Vedeu.timer
1
2
  Measure the execution time of the code in the given block.
2
3
 
3
4
  The optional message provided will have ' took <time>ms.' appended and
@@ -1,3 +1,4 @@
1
+ ### `title`
1
2
  If you have you are showing a top border, you could add a
2
3
  title.
3
4
 
@@ -1 +1,2 @@
1
+ ### Vedeu.cursor
1
2
  @todo Add more documentation.
@@ -1 +1,2 @@
1
+ ### Vedeu.toggle_group
1
2
  @todo Add more documentation.
@@ -1 +1,2 @@
1
+ ### Vedeu.toggle_interface
1
2
  @todo Add more documentation.
@@ -1,3 +1,4 @@
1
+ ### `top`
1
2
  Enable/disable the top border.
2
3
 
3
4
  Vedeu.border :border_demo do
@@ -1,3 +1,4 @@
1
+ ### `top_horizontal`
1
2
  Set the character to be used to draw the top horizontal part
2
3
  of the border.
3
4
 
@@ -1,3 +1,4 @@
1
+ ### `top_left`
1
2
  Set the character to be used to draw the top left corner of
2
3
  the border.
3
4
 
@@ -1,3 +1,4 @@
1
+ ### `top_right`
1
2
  Set the character to be used to draw the top right corner of
2
3
  the border.
3
4
 
@@ -1 +1,2 @@
1
+ ### Vedeu.trigger
1
2
  @todo Add more documentation.
@@ -1,3 +1,4 @@
1
+ ### Vedeu.unbind
1
2
  Unbind events from a named handler.
2
3
 
3
4
  Removes all events associated with the given name.
@@ -1,3 +1,4 @@
1
+ ### Vedeu.unbind_alias
1
2
  Remove an alias by name. The alias name group is destroyed, but events
2
3
  stored within this alias are not.
3
4
 
@@ -1,3 +1,4 @@
1
+ ### `vertical`
1
2
  Set the character to be used to draw a vertical part of the border.
2
3
 
3
4
  Vedeu.border :border_demo do
@@ -1,3 +1,4 @@
1
+ ### Vedeu.width
1
2
  Returns the total width (number of columns/characters) of the
2
3
  current terminal.
3
4
 
@@ -1,3 +1,4 @@
1
+ ### Vedeu.write
1
2
  This allows the direct writing to the terminal, unencumbered by the
2
3
  framework.
3
4