vedeu 0.8.10 → 0.8.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.yardopts +0 -1
- data/docs/api.md +1 -1
- data/docs/dsl/by_method/add_command.md +1 -0
- data/docs/dsl/by_method/add_keypress.md +1 -0
- data/docs/dsl/by_method/all_commands.md +1 -0
- data/docs/dsl/by_method/all_keypresses.md +1 -0
- data/docs/dsl/by_method/background_colours.md +1 -0
- data/docs/dsl/by_method/bind.md +1 -0
- data/docs/dsl/by_method/bind_alias.md +1 -0
- data/docs/dsl/by_method/borders.md +1 -0
- data/docs/dsl/by_method/bottom.md +1 -0
- data/docs/dsl/by_method/bottom_horizontal.md +1 -0
- data/docs/dsl/by_method/bottom_left.md +1 -0
- data/docs/dsl/by_method/bottom_right.md +1 -0
- data/docs/dsl/by_method/bound.md +1 -0
- data/docs/dsl/by_method/buffer_update.md +4 -1
- data/docs/dsl/by_method/buffer_write.md +5 -1
- data/docs/dsl/by_method/buffers.md +1 -0
- data/docs/dsl/by_method/caption.md +1 -0
- data/docs/dsl/by_method/clear.md +1 -0
- data/docs/dsl/by_method/clear_by_group.md +1 -0
- data/docs/dsl/by_method/clear_by_name.md +1 -0
- data/docs/dsl/by_method/clear_content_by_name.md +1 -0
- data/docs/dsl/by_method/configuration.md +1 -0
- data/docs/dsl/by_method/configure.md +1 -0
- data/docs/dsl/by_method/cursor.md +1 -0
- data/docs/dsl/by_method/cursors.md +1 -0
- data/docs/dsl/by_method/debug.md +1 -0
- data/docs/dsl/by_method/direct_write.md +6 -1
- data/docs/dsl/by_method/disable.md +1 -0
- data/docs/dsl/by_method/documents.md +1 -0
- data/docs/dsl/by_method/drb_restart.md +1 -0
- data/docs/dsl/by_method/drb_start.md +1 -0
- data/docs/dsl/by_method/drb_status.md +1 -0
- data/docs/dsl/by_method/drb_stop.md +1 -0
- data/docs/dsl/by_method/enable.md +1 -0
- data/docs/dsl/by_method/esc.md +50 -0
- data/docs/dsl/by_method/events.md +1 -0
- data/docs/dsl/by_method/exit.md +1 -0
- data/docs/dsl/by_method/focus.md +1 -0
- data/docs/dsl/by_method/focus_by_name.md +1 -0
- data/docs/dsl/by_method/focus_next.md +1 -0
- data/docs/dsl/by_method/focus_previous.md +1 -0
- data/docs/dsl/by_method/focussed.md +1 -0
- data/docs/dsl/by_method/foreground_colours.md +1 -0
- data/docs/dsl/by_method/geometries.md +1 -0
- data/docs/dsl/by_method/geometry.md +1 -0
- data/docs/dsl/by_method/goto.md +1 -0
- data/docs/dsl/by_method/group.md +1 -0
- data/docs/dsl/by_method/groups.md +1 -0
- data/docs/dsl/by_method/height.md +1 -0
- data/docs/dsl/by_method/hide_cursor.md +1 -0
- data/docs/dsl/by_method/hide_group.md +1 -0
- data/docs/dsl/by_method/hide_interface.md +1 -0
- data/docs/dsl/by_method/horizontal.md +1 -0
- data/docs/dsl/by_method/interface.md +1 -0
- data/docs/dsl/by_method/interfaces.md +1 -0
- data/docs/dsl/by_method/keymap.md +1 -0
- data/docs/dsl/by_method/keymaps.md +1 -0
- data/docs/dsl/by_method/keypress.md +2 -0
- data/docs/dsl/by_method/last_command.md +1 -0
- data/docs/dsl/by_method/last_keypress.md +1 -0
- data/docs/dsl/by_method/left.md +1 -0
- data/docs/dsl/by_method/left_vertical.md +1 -0
- data/docs/dsl/by_method/log.md +1 -0
- data/docs/dsl/by_method/log_stderr.md +1 -0
- data/docs/dsl/by_method/log_stdout.md +1 -0
- data/docs/dsl/by_method/log_timestamp.md +1 -0
- data/docs/dsl/by_method/menu.md +1 -0
- data/docs/dsl/by_method/menus.md +1 -0
- data/docs/dsl/by_method/profile.md +1 -0
- data/docs/dsl/by_method/ready.md +1 -0
- data/docs/dsl/by_method/refresh.md +1 -0
- data/docs/dsl/by_method/render_output.md +5 -1
- data/docs/dsl/by_method/renderer.md +1 -0
- data/docs/dsl/by_method/renderers.md +1 -0
- data/docs/dsl/by_method/resize.md +1 -0
- data/docs/dsl/by_method/right.md +1 -0
- data/docs/dsl/by_method/right_vertical.md +1 -0
- data/docs/dsl/by_method/show_cursor.md +1 -0
- data/docs/dsl/by_method/show_group.md +1 -0
- data/docs/dsl/by_method/show_interface.md +1 -0
- data/docs/dsl/by_method/timer.md +1 -0
- data/docs/dsl/by_method/title.md +1 -0
- data/docs/dsl/by_method/toggle_cursor.md +1 -0
- data/docs/dsl/by_method/toggle_group.md +1 -0
- data/docs/dsl/by_method/toggle_interface.md +1 -0
- data/docs/dsl/by_method/top.md +1 -0
- data/docs/dsl/by_method/top_horizontal.md +1 -0
- data/docs/dsl/by_method/top_left.md +1 -0
- data/docs/dsl/by_method/top_right.md +1 -0
- data/docs/dsl/by_method/trigger.md +1 -0
- data/docs/dsl/by_method/unbind.md +1 -0
- data/docs/dsl/by_method/unbind_alias.md +1 -0
- data/docs/dsl/by_method/vertical.md +1 -0
- data/docs/dsl/by_method/width.md +1 -0
- data/docs/dsl/by_method/write.md +1 -0
- data/docs/dsl_elements.md +107 -100
- data/examples/dsl_alignment.rb +1 -1
- data/examples/dsl_colours.rb +1 -1
- data/examples/dsl_editor.rb +1 -1
- data/examples/dsl_horizontal_alignment.rb +1 -1
- data/examples/dsl_vertical_alignment.rb +1 -1
- data/examples/views/misc_view.rb +1 -1
- data/lib/vedeu/application/application_controller.rb +2 -0
- data/lib/vedeu/application/application_view.rb +2 -0
- data/lib/vedeu/borders/dsl.rb +1 -0
- data/lib/vedeu/borders/repository.rb +1 -0
- data/lib/vedeu/buffers/empty.rb +1 -0
- data/lib/vedeu/buffers/repository.rb +1 -0
- data/lib/vedeu/buffers/terminal.rb +3 -1
- data/lib/vedeu/cells/border.rb +0 -5
- data/lib/vedeu/cells/char.rb +0 -5
- data/lib/vedeu/cells/clear.rb +0 -5
- data/lib/vedeu/cells/cursor.rb +0 -5
- data/lib/vedeu/cells/empty.rb +0 -5
- data/lib/vedeu/cells/escape.rb +0 -5
- data/lib/vedeu/cells/support/html.rb +2 -0
- data/lib/vedeu/colours/backgrounds.rb +1 -0
- data/lib/vedeu/colours/foregrounds.rb +1 -0
- data/lib/vedeu/common.rb +0 -9
- data/lib/vedeu/configuration/configuration.rb +5 -0
- data/lib/vedeu/cursors/cursor.rb +3 -0
- data/lib/vedeu/cursors/repository.rb +2 -0
- data/lib/vedeu/distributed/server.rb +4 -0
- data/lib/vedeu/dsl/helpers/attributes.rb +4 -0
- data/lib/vedeu/dsl/views.rb +3 -0
- data/lib/vedeu/editor/repository.rb +1 -0
- data/lib/vedeu/esc/background.rb +2 -0
- data/lib/vedeu/esc/foreground.rb +2 -0
- data/lib/vedeu/events/aliases.rb +2 -0
- data/lib/vedeu/events/all.rb +1 -1
- data/lib/vedeu/events/event.rb +4 -1
- data/lib/vedeu/events/{collection.rb → events.rb} +3 -2
- data/lib/vedeu/events/repository.rb +4 -1
- data/lib/vedeu/events/trigger.rb +3 -0
- data/lib/vedeu/geometries/dsl/dsl.rb +1 -0
- data/lib/vedeu/geometries/repository.rb +1 -0
- data/lib/vedeu/groups/clear.rb +1 -0
- data/lib/vedeu/groups/dsl.rb +1 -0
- data/lib/vedeu/groups/group.rb +3 -0
- data/lib/vedeu/groups/repository.rb +1 -0
- data/lib/vedeu/input/capture.rb +1 -1
- data/lib/vedeu/input/dsl.rb +1 -0
- data/lib/vedeu/input/mapper.rb +1 -0
- data/lib/vedeu/input/read.rb +1 -0
- data/lib/vedeu/input/repository.rb +1 -0
- data/lib/vedeu/input/store.rb +6 -0
- data/lib/vedeu/interfaces/clear.rb +3 -1
- data/lib/vedeu/interfaces/dsl.rb +1 -0
- data/lib/vedeu/interfaces/interface.rb +3 -0
- data/lib/vedeu/interfaces/repository.rb +1 -0
- data/lib/vedeu/logging/clock_time.rb +1 -0
- data/lib/vedeu/logging/debug.rb +2 -0
- data/lib/vedeu/logging/log.rb +4 -0
- data/lib/vedeu/logging/timer.rb +1 -0
- data/lib/vedeu/menus/menu.rb +1 -0
- data/lib/vedeu/menus/repository.rb +1 -0
- data/lib/vedeu/models/focus.rb +6 -0
- data/lib/vedeu/output/all.rb +1 -0
- data/lib/vedeu/output/compressor.rb +17 -104
- data/lib/vedeu/output/compressor_cache.rb +43 -20
- data/lib/vedeu/output/compressors/all.rb +26 -0
- data/lib/vedeu/output/compressors/character.rb +105 -0
- data/lib/vedeu/output/compressors/simple.rb +67 -0
- data/lib/vedeu/output/output.rb +30 -24
- data/lib/vedeu/output/write.rb +1 -0
- data/lib/vedeu/renderers/all.rb +1 -0
- data/lib/vedeu/renderers/options.rb +1 -1
- data/lib/vedeu/renderers/terminal.rb +8 -7
- data/lib/vedeu/repositories/storage.rb +2 -0
- data/lib/vedeu/runtime/application.rb +15 -2
- data/lib/vedeu/runtime/flags.rb +4 -0
- data/lib/vedeu/runtime/router.rb +1 -0
- data/lib/vedeu/sentence.rb +2 -0
- data/lib/vedeu/support/point.rb +2 -0
- data/lib/vedeu/terminal/terminal.rb +1 -0
- data/lib/vedeu/version.rb +1 -1
- data/lib/vedeu/views/all.rb +2 -0
- data/lib/vedeu/views/composition.rb +5 -1
- data/lib/vedeu/views/line.rb +2 -0
- data/lib/vedeu/views/stream.rb +2 -0
- data/lib/vedeu/views/view.rb +3 -1
- data/test/lib/vedeu/cells/border_test.rb +0 -6
- data/test/lib/vedeu/cells/char_test.rb +0 -6
- data/test/lib/vedeu/cells/clear_test.rb +0 -6
- data/test/lib/vedeu/cells/cursor_test.rb +0 -4
- data/test/lib/vedeu/cells/empty_test.rb +0 -6
- data/test/lib/vedeu/cells/escape_test.rb +0 -4
- data/test/lib/vedeu/common_test.rb +0 -10
- data/test/lib/vedeu/events/{collection_test.rb → events_test.rb} +3 -3
- data/test/lib/vedeu/events/repository_test.rb +1 -1
- data/test/lib/vedeu/output/compressor_cache_test.rb +87 -63
- data/test/lib/vedeu/output/compressor_test.rb +31 -8
- data/test/lib/vedeu/output/compressors/character_test.rb +40 -0
- data/test/lib/vedeu/output/compressors/simple_test.rb +42 -0
- data/test/lib/vedeu/repositories/storage_test.rb +2 -0
- data/test/lib/vedeu/sentence_test.rb +2 -0
- data/test/lib/vedeu/support/point_test.rb +2 -0
- data/test/support/coverage.rb +2 -0
- data/test/support/examples/drb_app.rb +2 -0
- data/test/support/examples/focus_app.rb +2 -0
- data/test/support/examples/hello_world.rb +2 -0
- data/test/support/examples/material_colours_app.rb +7 -4
- data/test/support/examples/view_templates_app/view_templates_app.rb +2 -0
- data/test/support/ttyrec.rb +2 -0
- data/test/support/who.rb +2 -0
- metadata +13 -5
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 0bb5fc66d38ef9dbbdad8ea2209c510b335a4fb8
|
|
4
|
+
data.tar.gz: da7ea21b8fc9004bd0db6661b89b526cc40a10ce
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 4b3cf2c29c24ddf35b1da2926b8d172035c3592e95e00f2ec589bc0d82c373b3d4471b1df6695afa15097f5e483c2cf3689c82e3db83271126d730c254895cc7
|
|
7
|
+
data.tar.gz: cf9b359cf05f70b9ea6093712fc57efae2379e6864a8311f64e6c0896b86441d2629e70b4f9683d7f7945826c57c5d494a2e7e51410c51135bed9b469c975733
|
data/.yardopts
CHANGED
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::
|
|
146
|
+
Vedeu.events.all # [Array<Vedeu::Events::Events>]
|
|
147
147
|
|
|
148
148
|
### Vedeu.foreground_colours
|
|
149
149
|
|
data/docs/dsl/by_method/bind.md
CHANGED
data/docs/dsl/by_method/bound.md
CHANGED
|
@@ -1,3 +1,7 @@
|
|
|
1
|
-
|
|
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)
|
data/docs/dsl/by_method/clear.md
CHANGED
data/docs/dsl/by_method/debug.md
CHANGED
|
@@ -1,3 +1,8 @@
|
|
|
1
|
-
|
|
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)
|
|
@@ -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
|
+
```
|
data/docs/dsl/by_method/exit.md
CHANGED
data/docs/dsl/by_method/focus.md
CHANGED
data/docs/dsl/by_method/goto.md
CHANGED
data/docs/dsl/by_method/group.md
CHANGED
data/docs/dsl/by_method/left.md
CHANGED
data/docs/dsl/by_method/log.md
CHANGED
data/docs/dsl/by_method/menu.md
CHANGED
data/docs/dsl/by_method/menus.md
CHANGED
data/docs/dsl/by_method/ready.md
CHANGED
|
@@ -1,3 +1,7 @@
|
|
|
1
|
-
|
|
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)
|
data/docs/dsl/by_method/right.md
CHANGED
data/docs/dsl/by_method/timer.md
CHANGED
data/docs/dsl/by_method/title.md
CHANGED
data/docs/dsl/by_method/top.md
CHANGED
data/docs/dsl/by_method/width.md
CHANGED
data/docs/dsl/by_method/write.md
CHANGED