vedeu 0.8.2 → 0.8.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/examples/views/_interfaces.rb +127 -0
- data/examples/views/empty_template.rb +10 -0
- data/examples/views/expected/vedeu_full_screen.html +140 -0
- data/examples/views/expected/vedeu_full_screen.json +96050 -0
- data/examples/views/expected/vedeu_full_screen.out +1 -0
- data/examples/views/expected/vedeu_full_screen.txt +50 -0
- data/examples/views/expected/vedeu_line.html +140 -0
- data/examples/views/expected/vedeu_line.json +96050 -0
- data/examples/views/expected/vedeu_line.out +1 -0
- data/examples/views/expected/vedeu_line.txt +58 -0
- data/examples/views/expected/vedeu_lines.html +140 -0
- data/examples/views/expected/vedeu_lines.json +96050 -0
- data/examples/views/expected/{lines.out → vedeu_lines.out} +1 -1
- data/examples/views/expected/vedeu_lines_alignment.html +80 -0
- data/examples/views/expected/vedeu_lines_alignment.json +46370 -0
- data/examples/views/expected/vedeu_lines_alignment.out +1 -0
- data/examples/views/full_screen.rb +10 -0
- data/examples/views/line.rb +11 -106
- data/examples/views/lines.rb +8 -127
- data/examples/views/lines_alignment.rb +17 -125
- data/examples/views/runner.sh +65 -19
- data/lib/vedeu/borders/border.rb +6 -6
- data/lib/vedeu/borders/refresh.rb +4 -6
- data/lib/vedeu/buffers/buffer.rb +1 -1
- data/lib/vedeu/buffers/terminal.rb +4 -4
- data/lib/vedeu/buffers/view.rb +2 -2
- data/lib/vedeu/cells/all.rb +2 -2
- data/lib/vedeu/cells/border.rb +5 -0
- data/lib/vedeu/cells/borders/all.rb +2 -8
- data/lib/vedeu/cells/borders/edges/all.rb +6 -0
- data/lib/vedeu/cells/borders/{bottom_horizontal.rb → edges/bottom_horizontal.rb} +0 -0
- data/lib/vedeu/cells/borders/{left_vertical.rb → edges/left_vertical.rb} +0 -0
- data/lib/vedeu/cells/borders/{right_vertical.rb → edges/right_vertical.rb} +0 -0
- data/lib/vedeu/cells/borders/{top_horizontal.rb → edges/top_horizontal.rb} +0 -0
- data/lib/vedeu/cells/borders/horizontal.rb +5 -0
- data/lib/vedeu/cells/borders/vertical.rb +5 -0
- data/lib/vedeu/cells/borders/vertices/all.rb +6 -0
- data/lib/vedeu/cells/borders/{bottom_left.rb → vertices/bottom_left.rb} +5 -0
- data/lib/vedeu/cells/borders/{bottom_right.rb → vertices/bottom_right.rb} +5 -0
- data/lib/vedeu/cells/borders/{top_left.rb → vertices/top_left.rb} +5 -0
- data/lib/vedeu/cells/borders/{top_right.rb → vertices/top_right.rb} +5 -0
- data/lib/vedeu/cells/char.rb +16 -0
- data/lib/vedeu/cells/clear.rb +5 -0
- data/lib/vedeu/cells/cursor.rb +70 -0
- data/lib/vedeu/cells/empty.rb +24 -14
- data/lib/vedeu/cells/escape.rb +8 -7
- data/lib/vedeu/cells/support/all.rb +3 -0
- data/lib/vedeu/cells/support/html.rb +98 -0
- data/lib/vedeu/colours/background.rb +21 -1
- data/lib/vedeu/colours/colour.rb +10 -2
- data/lib/vedeu/colours/foreground.rb +21 -1
- data/lib/vedeu/colours/translator.rb +17 -24
- data/lib/vedeu/colours/validator.rb +9 -9
- data/lib/vedeu/configuration/api.rb +1 -1
- data/lib/vedeu/cursors/cursor.rb +5 -5
- data/lib/vedeu/dsl/elements.rb +22 -79
- data/lib/vedeu/dsl/string/text.rb +3 -3
- data/lib/vedeu/editor/cropper.rb +2 -2
- data/lib/vedeu/editor/cursor.rb +1 -1
- data/lib/vedeu/editor/document.rb +1 -1
- data/lib/vedeu/geometries/area/dimension.rb +1 -1
- data/lib/vedeu/geometries/position.rb +5 -2
- data/lib/vedeu/interfaces/clear.rb +5 -5
- data/lib/vedeu/models/row.rb +4 -3
- data/lib/vedeu/output/compressor.rb +7 -7
- data/lib/vedeu/output/output.rb +8 -13
- data/lib/vedeu/output/viewport.rb +1 -1
- data/lib/vedeu/presentation/background.rb +2 -2
- data/lib/vedeu/presentation/colour.rb +0 -4
- data/lib/vedeu/presentation/foreground.rb +2 -2
- data/lib/vedeu/presentation/style.rb +1 -1
- data/lib/vedeu/presentation/styles.rb +0 -3
- data/lib/vedeu/renderers/file.rb +10 -68
- data/lib/vedeu/renderers/html.rb +28 -96
- data/lib/vedeu/renderers/json.rb +15 -31
- data/lib/vedeu/renderers/options.rb +160 -14
- data/lib/vedeu/renderers/templates/html_renderer.vedeu +1 -0
- data/lib/vedeu/renderers/terminal.rb +16 -17
- data/lib/vedeu/renderers/text.rb +32 -41
- data/lib/vedeu/version.rb +1 -1
- data/lib/vedeu/views/all.rb +0 -2
- data/lib/vedeu/views/chars.rb +6 -3
- data/lib/vedeu/views/stream.rb +3 -2
- data/test/lib/vedeu/borders/caption_test.rb +17 -17
- data/test/lib/vedeu/borders/title_test.rb +12 -12
- data/test/lib/vedeu/cells/border_test.rb +6 -0
- data/test/lib/vedeu/cells/borders/{bottom_horizontal_test.rb → edges/bottom_horizontal_test.rb} +0 -0
- data/test/lib/vedeu/cells/borders/{left_vertical_test.rb → edges/left_vertical_test.rb} +0 -0
- data/test/lib/vedeu/cells/borders/{right_vertical_test.rb → edges/right_vertical_test.rb} +0 -0
- data/test/lib/vedeu/cells/borders/{top_horizontal_test.rb → edges/top_horizontal_test.rb} +0 -0
- data/test/lib/vedeu/cells/borders/horizontal_test.rb +6 -0
- data/test/lib/vedeu/cells/borders/vertical_test.rb +6 -0
- data/test/lib/vedeu/cells/borders/{bottom_left_test.rb → vertices/bottom_left_test.rb} +6 -0
- data/test/lib/vedeu/cells/borders/{bottom_right_test.rb → vertices/bottom_right_test.rb} +6 -0
- data/test/lib/vedeu/cells/borders/{top_left_test.rb → vertices/top_left_test.rb} +6 -0
- data/test/lib/vedeu/cells/borders/{top_right_test.rb → vertices/top_right_test.rb} +6 -0
- data/test/lib/vedeu/cells/char_test.rb +18 -0
- data/test/lib/vedeu/cells/clear_test.rb +6 -0
- data/test/lib/vedeu/cells/cursor_test.rb +113 -0
- data/test/lib/vedeu/cells/empty_test.rb +100 -7
- data/test/lib/vedeu/cells/escape_test.rb +29 -13
- data/test/lib/vedeu/cells/support/html_test.rb +100 -0
- data/test/lib/vedeu/colours/background_test.rb +35 -3
- data/test/lib/vedeu/colours/colour_test.rb +66 -0
- data/test/lib/vedeu/colours/foreground_test.rb +35 -3
- data/test/lib/vedeu/colours/translator_test.rb +0 -34
- data/test/lib/vedeu/colours/validator_test.rb +84 -6
- data/test/lib/vedeu/cursors/cursor_test.rb +4 -4
- data/test/lib/vedeu/cursors/refresh_test.rb +4 -1
- data/test/lib/vedeu/dsl/string/text_test.rb +36 -36
- data/test/lib/vedeu/editor/cropper_test.rb +15 -15
- data/test/lib/vedeu/geometries/position_test.rb +14 -1
- data/test/lib/vedeu/models/page_test.rb +10 -10
- data/test/lib/vedeu/models/row_test.rb +7 -7
- data/test/lib/vedeu/output/compressor_test.rb +63 -50
- data/test/lib/vedeu/renderers/file_test.rb +64 -35
- data/test/lib/vedeu/renderers/html_test.rb +15 -12
- data/test/lib/vedeu/renderers/json_test.rb +79 -56
- data/test/lib/vedeu/renderers/options_test.rb +74 -26
- data/test/lib/vedeu/renderers/terminal_test.rb +34 -4
- data/test/lib/vedeu/renderers/text_test.rb +35 -3
- data/test/lib/vedeu/views/chars_test.rb +6 -0
- metadata +50 -41
- data/examples/views/expected/line.out +0 -1
- data/examples/views/expected/lines_alignment.out +0 -1
- data/lib/vedeu/cells/html.rb +0 -21
- data/lib/vedeu/cells/json.rb +0 -21
- data/lib/vedeu/views/char.rb +0 -180
- data/lib/vedeu/views/html_char.rb +0 -133
- data/test/lib/vedeu/cells/html_test.rb +0 -15
- data/test/lib/vedeu/cells/json_test.rb +0 -15
- data/test/lib/vedeu/views/char_test.rb +0 -283
- data/test/lib/vedeu/views/html_char_test.rb +0 -125
@@ -0,0 +1 @@
|
|
1
|
+
[0m[0m[0m[3;4H[39m[49m(0l(B[3;5H(0q(B[3;6H [3;7HT[3;8He[3;9Hs[3;10Ht[3;11H [3;12H1[3;13H [3;14H(0q(B[3;15H(0q(B[3;16H(0q(B[3;17H(0q(B[3;18H(0q(B[3;19H(0q(B[3;20H(0q(B[3;21H(0q(B[3;22H(0q(B[3;23H(0q(B[3;24H(0q(B[3;25H(0q(B[3;26H(0q(B[3;27H(0q(B[3;28H(0q(B[3;29H(0q(B[3;30H(0q(B[3;31H(0q(B[3;32H(0q(B[3;33H(0q(B[3;34H(0q(B[3;35H(0k(B[3;41H[38;5;39m[48;5;16m(0l(B[3;42H(0q(B[3;43H [3;44HT[3;45He[3;46Hs[3;47Ht[3;48H [3;49H2[3;50H [3;51H(0q(B[3;52H(0q(B[3;53H(0q(B[3;54H(0q(B[3;55H(0q(B[3;56H(0q(B[3;57H(0q(B[3;58H(0q(B[3;59H(0q(B[3;60H(0q(B[3;61H(0q(B[3;62H(0q(B[3;63H(0q(B[3;64H(0q(B[3;65H(0q(B[3;66H(0q(B[3;67H(0q(B[3;68H(0q(B[3;69H(0q(B[3;70H(0q(B[3;71H(0q(B[3;72H(0k(B[0m[4;4H[39m[49m(0x(B[4;5H[38;5;154m[48;5;16mv[4;6Hi[4;7He[4;8Hw[4;9H-[4;10H>[4;11Hl[4;12Hi[4;13Hn[4;14He[4;15H [4;16H([4;17Ha[4;18Hl[4;19Hi[4;20Hg[4;21Hn[4;22H:[4;23H [4;24H:[4;25Hl[4;26He[4;27Hf[4;28Ht[4;29H)[4;30H [4;31H [4;32H [4;33H [4;34H [4;35H[39m[49m(0x(B[4;41H[38;5;39m[48;5;16m(0x(B[4;42H[39m[49mv[4;43Hi[4;44He[4;45Hw[4;46H-[4;47H>[4;48Hl[4;49He[4;50Hf[4;51Ht[4;52H [4;53H [4;54H [4;55H [4;56H [4;57H [4;58H [4;59H [4;60H [4;61H [4;62H [4;63H [4;64H [4;65H [4;66H [4;67H [4;68H [4;69H [4;70H [4;71H [4;72H[38;5;39m[48;5;16m(0x(B[0m[5;4H[39m[49m(0x(B[5;5H[38;5;154m[48;5;16m [5;6Hv[5;7Hi[5;8He[5;9Hw[5;10H-[5;11H>[5;12Hl[5;13Hi[5;14Hn[5;15He[5;16H [5;17H([5;18Ha[5;19Hl[5;20Hi[5;21Hg[5;22Hn[5;23H:[5;24H [5;25H:[5;26Hc[5;27He[5;28Hn[5;29Ht[5;30He[5;31Hr[5;32H)[5;33H [5;34H [5;35H[39m[49m(0x(B[5;41H[38;5;39m[48;5;16m(0x(B[5;42H[39m[49m [5;43H [5;44H [5;45H [5;46H [5;47H [5;48H [5;49H [5;50H [5;51Hv[5;52Hi[5;53He[5;54Hw[5;55H-[5;56H>[5;57Hc[5;58He[5;59Hn[5;60Ht[5;61He[5;62Hr[5;63H [5;64H [5;65H [5;66H [5;67H [5;68H [5;69H [5;70H [5;71H [5;72H[38;5;39m[48;5;16m(0x(B[0m[6;4H[39m[49m(0x(B[6;5H[38;5;154m[48;5;16m [6;6Hv[6;7Hi[6;8He[6;9Hw[6;10H-[6;11H>[6;12Hl[6;13Hi[6;14Hn[6;15He[6;16H [6;17H([6;18Ha[6;19Hl[6;20Hi[6;21Hg[6;22Hn[6;23H:[6;24H [6;25H:[6;26Hc[6;27He[6;28Hn[6;29Ht[6;30Hr[6;31He[6;32H)[6;33H [6;34H [6;35H[39m[49m(0x(B[6;41H[38;5;39m[48;5;16m(0x(B[6;42H[39m[49m [6;43H [6;44H [6;45H [6;46H [6;47H [6;48H [6;49H [6;50H [6;51Hv[6;52Hi[6;53He[6;54Hw[6;55H-[6;56H>[6;57Hc[6;58He[6;59Hn[6;60Ht[6;61Hr[6;62He[6;63H [6;64H [6;65H [6;66H [6;67H [6;68H [6;69H [6;70H [6;71H [6;72H[38;5;39m[48;5;16m(0x(B[0m[7;4H[39m[49m(0x(B[7;5H[38;5;154m[48;5;16m [7;6H [7;7H [7;8H [7;9Hv[7;10Hi[7;11He[7;12Hw[7;13H-[7;14H>[7;15Hl[7;16Hi[7;17Hn[7;18He[7;19H [7;20H([7;21Ha[7;22Hl[7;23Hi[7;24Hg[7;25Hn[7;26H:[7;27H [7;28H:[7;29Hr[7;30Hi[7;31Hg[7;32Hh[7;33Ht[7;34H)[7;35H[39m[49m(0x(B[7;41H[38;5;39m[48;5;16m(0x(B[7;42H[39m[49m [7;43H [7;44H [7;45H [7;46H [7;47H [7;48H [7;49H [7;50H [7;51H [7;52H [7;53H [7;54H [7;55H [7;56H [7;57H [7;58H [7;59H [7;60H [7;61Hv[7;62Hi[7;63He[7;64Hw[7;65H-[7;66H>[7;67Hr[7;68Hi[7;69Hg[7;70Hh[7;71Ht[7;72H[38;5;39m[48;5;16m(0x(B[0m[8;4H[39m[49m(0m(B[8;5H(0q(B[8;6H(0q(B[8;7H(0q(B[8;8H(0q(B[8;9H(0q(B[8;10H(0q(B[8;11H(0q(B[8;12H(0q(B[8;13H(0q(B[8;14H(0q(B[8;15H(0q(B[8;16H(0q(B[8;17H(0q(B[8;18H(0q(B[8;19H(0q(B[8;20H(0q(B[8;21H(0q(B[8;22H(0q(B[8;23H(0q(B[8;24H(0q(B[8;25H(0q(B[8;26H(0q(B[8;27H(0q(B[8;28H(0q(B[8;29H(0q(B[8;30H(0q(B[8;31H(0q(B[8;32H(0q(B[8;33H(0q(B[8;34H(0q(B[8;35H(0j(B[8;41H[38;5;39m[48;5;16m(0m(B[8;42H(0q(B[8;43H(0q(B[8;44H(0q(B[8;45H(0q(B[8;46H(0q(B[8;47H(0q(B[8;48H(0q(B[8;49H(0q(B[8;50H(0q(B[8;51H(0q(B[8;52H(0q(B[8;53H(0q(B[8;54H(0q(B[8;55H(0q(B[8;56H(0q(B[8;57H(0q(B[8;58H(0q(B[8;59H(0q(B[8;60H(0q(B[8;61H(0q(B[8;62H(0q(B[8;63H(0q(B[8;64H(0q(B[8;65H(0q(B[8;66H(0q(B[8;67H(0q(B[8;68H(0q(B[8;69H(0q(B[8;70H(0q(B[8;71H(0q(B[8;72H(0j(B[0m[9;4H[39m[49m`[9;5H:[9;6Ha[9;7Hl[9;8Hi[9;9Hg[9;10Hn[9;11H`[9;12H [9;13Ho[9;14Hp[9;15Ht[9;16Hi[9;17Ho[9;18Hn[9;19H [9;20Ho[9;21Hn[9;22H [9;23Ht[9;24Hh[9;25He[9;26H [9;27H`[9;28Hl[9;29Hi[9;30Hn[9;31He[9;32H`[9;33H [9;34H [9;35H [9;41H [9;42H [9;43H [9;44H [9;45H [9;46H [9;47H [9;48H [9;49H [9;50H [9;51H [9;52H [9;53H [9;54H [9;55H [9;56H [9;57H [9;58H [9;59H [9;60H [9;61H [9;62H [9;63H [9;64H [9;65H [9;66H [9;67H [9;68H [9;69H [9;70H [9;71H [9;72H [0m[10;4H[39m[49mD[10;5HS[10;6HL[10;7H [10;8Hm[10;9He[10;10Ht[10;11Hh[10;12Ho[10;13Hd[10;14H.[10;15H [10;16H([10;17Hn[10;18Ho[10;19H [10;20Hw[10;21Hi[10;22Hd[10;23Ht[10;24Hh[10;25H [10;26Ho[10;27Hr[10;28H [10;29Hn[10;30Ha[10;31Hm[10;32He[10;33H [10;34H [10;35H [10;41H [10;42H [10;43H [10;44H [10;45H [10;46H [10;47H [10;48H [10;49H [10;50H [10;51H [10;52H [10;53H [10;54H [10;55H [10;56H [10;57H [10;58H [10;59H [10;60H [10;61H [10;62H [10;63H [10;64H [10;65H [10;66H [10;67H [10;68H [10;69H [10;70H [10;71H [10;72H [0m[11;4H[39m[49ms[11;5He[11;6Ht[11;7H)[11;8H [11;9H [11;10H [11;11H [11;12H [11;13H [11;14H [11;15H [11;16H [11;17H [11;18H [11;19H [11;20H [11;21H [11;22H [11;23H [11;24H [11;25H [11;26H [11;27H [11;28H [11;29H [11;30H [11;31H [11;32H [11;33H [11;34H [11;35H [11;41H [11;42H [11;43H [11;44H [11;45H [11;46H [11;47H [11;48H [11;49H [11;50H [11;51H [11;52H [11;53H [11;54H [11;55H [11;56H [11;57H [11;58H [11;59H [11;60H [11;61H [11;62H [11;63H [11;64H [11;65H [11;66H [11;67H [11;68H [11;69H [11;70H [11;71H [11;72H [0m[12;4H[39m[49m [12;5H [12;6H [12;7H [12;8H [12;9H [12;10H [12;11H [12;12H [12;13H [12;14H [12;15H [12;16H [12;17H [12;18H [12;19H [12;20H [12;21H [12;22H [12;23H [12;24H [12;25H [12;26H [12;27H [12;28H [12;29H [12;30H [12;31H [12;32H [12;33H [12;34H [12;35H [12;41H [12;42H [12;43H [12;44H [12;45H [12;46H [12;47H [12;48H [12;49H [12;50H [12;51H [12;52H [12;53H [12;54H [12;55H [12;56H [12;57H [12;58H [12;59H [12;60H [12;61H [12;62H [12;63H [12;64H [12;65H [12;66H [12;67H [12;68H [12;69H [12;70H [12;71H [12;72H [0m[13;4H[39m[49m [13;5H [13;6H [13;7H [13;8H [13;9H [13;10H [13;11H [13;12H [13;13H [13;14H [13;15H [13;16H [13;17H [13;18H [13;19H [13;20H [13;21H [13;22H [13;23H [13;24H [13;25H [13;26H [13;27H [13;28H [13;29H [13;30H [13;31H [13;32H [13;33H [13;34H [13;35H [13;41H [13;42H [13;43H [13;44H [13;45H [13;46H [13;47H [13;48H [13;49H [13;50H [13;51H [13;52H [13;53H [13;54H [13;55H [13;56H [13;57H [13;58H [13;59H [13;60H [13;61H [13;62H [13;63H [13;64H [13;65H [13;66H [13;67H [13;68H [13;69H [13;70H [13;71H [13;72H [0m[14;4H[39m[49m(0l(B[14;5H(0q(B[14;6H [14;7HT[14;8He[14;9Hs[14;10Ht[14;11H [14;12H3[14;13H [14;14H(0q(B[14;15H(0q(B[14;16H(0q(B[14;17H(0q(B[14;18H(0q(B[14;19H(0q(B[14;20H(0q(B[14;21H(0q(B[14;22H(0q(B[14;23H(0q(B[14;24H(0q(B[14;25H(0q(B[14;26H(0q(B[14;27H(0q(B[14;28H(0q(B[14;29H(0q(B[14;30H(0q(B[14;31H(0q(B[14;32H(0q(B[14;33H(0q(B[14;34H(0q(B[14;35H(0k(B[14;41H(0l(B[14;42H(0q(B[14;43H [14;44HT[14;45He[14;46Hs[14;47Ht[14;48H [14;49H4[14;50H [14;51H(0q(B[14;52H(0q(B[14;53H(0q(B[14;54H(0q(B[14;55H(0q(B[14;56H(0q(B[14;57H(0q(B[14;58H(0q(B[14;59H(0q(B[14;60H(0q(B[14;61H(0q(B[14;62H(0q(B[14;63H(0q(B[14;64H(0q(B[14;65H(0q(B[14;66H(0q(B[14;67H(0q(B[14;68H(0q(B[14;69H(0q(B[14;70H(0q(B[14;71H(0q(B[14;72H(0k(B[0m[15;4H[39m[49m(0x(B[15;5H[38;5;196m[49mv[15;6Hi[15;7He[15;8Hw[15;9H-[15;10H>[15;11Hl[15;12Hi[15;13Hn[15;14He[15;15Hs[15;16H-[15;17H>[15;18Hl[15;19He[15;20Hf[15;21Ht[15;22H [15;23H1[15;24H [15;25H [15;26H [15;27H [15;28H [15;29H [15;30H [15;31H [15;32H [15;33H [15;34H [15;35H[39m[49m(0x(B[15;41H(0x(B[15;42H[38;5;46m[49m [15;43H [15;44H [15;45H [15;46H [15;47H [15;48H [15;49H [15;50H [15;51H [15;52Hv[15;53Hi[15;54He[15;55Hw[15;56H-[15;57H>[15;58Hl[15;59Hi[15;60Hn[15;61He[15;62Hs[15;63H-[15;64H>[15;65Hr[15;66Hi[15;67Hg[15;68Hh[15;69Ht[15;70H [15;71H1[15;72H[39m[49m(0x(B[0m[16;4H[39m[49m(0x(B[16;5H[38;5;16m[48;5;196mv[16;6Hi[16;7He[16;8Hw[16;9H-[16;10H>[16;11Hl[16;12Hi[16;13Hn[16;14He[16;15Hs[16;16H-[16;17H>[16;18Hl[16;19He[16;20Hf[16;21Ht[16;22H [16;23H2[16;24H [16;25H [16;26H [16;27H [16;28H [16;29H [16;30H [16;31H [16;32H [16;33H [16;34H [16;35H[39m[49m(0x(B[16;41H(0x(B[16;42H[38;5;16m[48;5;46m [16;43H [16;44H [16;45H [16;46H [16;47H [16;48H [16;49H [16;50H [16;51H [16;52Hv[16;53Hi[16;54He[16;55Hw[16;56H-[16;57H>[16;58Hl[16;59Hi[16;60Hn[16;61He[16;62Hs[16;63H-[16;64H>[16;65Hr[16;66Hi[16;67Hg[16;68Hh[16;69Ht[16;70H [16;71H2[16;72H[39m[49m(0x(B[0m[17;4H[39m[49m(0x(B[17;5H [17;6H [17;7H [17;8H [17;9H [17;10H [17;11H [17;12H [17;13H [17;14H [17;15H [17;16H [17;17H [17;18H [17;19H [17;20H [17;21H [17;22H [17;23H [17;24H [17;25H [17;26H [17;27H [17;28H [17;29H [17;30H [17;31H [17;32H [17;33H [17;34H [17;35H(0x(B[17;41H(0x(B[17;42H [17;43H [17;44H [17;45H [17;46H [17;47H [17;48H [17;49H [17;50H [17;51H [17;52H [17;53H [17;54H [17;55H [17;56H [17;57H [17;58H [17;59H [17;60H [17;61H [17;62H [17;63H [17;64H [17;65H [17;66H [17;67H [17;68H [17;69H [17;70H [17;71H [17;72H(0x(B[0m[18;4H[39m[49m(0m(B[18;5H(0q(B[18;6H(0q(B[18;7H(0q(B[18;8H(0q(B[18;9H(0q(B[18;10H(0q(B[18;11H(0q(B[18;12H(0q(B[18;13H(0q(B[18;14H(0q(B[18;15H(0q(B[18;16H(0q(B[18;17H(0q(B[18;18H(0q(B[18;19H(0q(B[18;20H(0q(B[18;21H(0q(B[18;22H(0q(B[18;23H(0q(B[18;24H(0q(B[18;25H(0q(B[18;26H(0q(B[18;27H(0q(B[18;28H(0q(B[18;29H(0q(B[18;30H(0q(B[18;31H(0q(B[18;32H(0q(B[18;33H(0q(B[18;34H(0q(B[18;35H(0j(B[18;41H(0m(B[18;42H(0q(B[18;43H(0q(B[18;44H(0q(B[18;45H(0q(B[18;46H(0q(B[18;47H(0q(B[18;48H(0q(B[18;49H(0q(B[18;50H(0q(B[18;51H(0q(B[18;52H(0q(B[18;53H(0q(B[18;54H(0q(B[18;55H(0q(B[18;56H(0q(B[18;57H(0q(B[18;58H(0q(B[18;59H(0q(B[18;60H(0q(B[18;61H(0q(B[18;62H(0q(B[18;63H(0q(B[18;64H(0q(B[18;65H(0q(B[18;66H(0q(B[18;67H(0q(B[18;68H(0q(B[18;69H(0q(B[18;70H(0q(B[18;71H(0q(B[18;72H(0j(B[0m[19;4H[39m[49m [19;5H [19;6H [19;7H [19;8H [19;9H [19;10H [19;11H [19;12H [19;13H [19;14H [19;15H [19;16H [19;17H [19;18H [19;19H [19;20H [19;21H [19;22H [19;23H [19;24H [19;25H [19;26H [19;27H [19;28H [19;29H [19;30H [19;31H [19;32H [19;33H [19;34H [19;35H [19;41H [19;42H [19;43H [19;44H [19;45H [19;46H [19;47H [19;48H [19;49H [19;50H [19;51H [19;52H [19;53H [19;54H [19;55H [19;56H [19;57H [19;58H [19;59H [19;60H [19;61H [19;62H [19;63H [19;64H [19;65H [19;66H [19;67H [19;68H [19;69H [19;70H [19;71H [19;72H [0m[20;4H[39m[49m [20;5H [20;6H [20;7H [20;8H [20;9H [20;10H [20;11H [20;12H [20;13H [20;14H [20;15H [20;16H [20;17H [20;18H [20;19H [20;20H [20;21H [20;22H [20;23H [20;24H [20;25H [20;26H [20;27H [20;28H [20;29H [20;30H [20;31H [20;32H [20;33H [20;34H [20;35H [20;41H [20;42H [20;43H [20;44H [20;45H [20;46H [20;47H [20;48H [20;49H [20;50H [20;51H [20;52H [20;53H [20;54H [20;55H [20;56H [20;57H [20;58H [20;59H [20;60H [20;61H [20;62H [20;63H [20;64H [20;65H [20;66H [20;67H [20;68H [20;69H [20;70H [20;71H [20;72H [0m[21;4H[39m[49m [21;5H [21;6H [21;7H [21;8H [21;9H [21;10H [21;11H [21;12H [21;13H [21;14H [21;15H [21;16H [21;17H [21;18H [21;19H [21;20H [21;21H [21;22H [21;23H [21;24H [21;25H [21;26H [21;27H [21;28H [21;29H [21;30H [21;31H [21;32H [21;33H [21;34H [21;35H [21;41H [21;42H [21;43H [21;44H [21;45H [21;46H [21;47H [21;48H [21;49H [21;50H [21;51H [21;52H [21;53H [21;54H [21;55H [21;56H [21;57H [21;58H [21;59H [21;60H [21;61H [21;62H [21;63H [21;64H [21;65H [21;66H [21;67H [21;68H [21;69H [21;70H [21;71H [21;72H [0m[22;4H[39m[49m [22;5H [22;6H [22;7H [22;8H [22;9H [22;10H [22;11H [22;12H [22;13H [22;14H [22;15H [22;16H [22;17H [22;18H [22;19H [22;20H [22;21H [22;22H [22;23H [22;24H [22;25H [22;26H [22;27H [22;28H [22;29H [22;30H [22;31H [22;32H [22;33H [22;34H [22;35H [22;41H [22;42H [22;43H [22;44H [22;45H [22;46H [22;47H [22;48H [22;49H [22;50H [22;51H [22;52H [22;53H [22;54H [22;55H [22;56H [22;57H [22;58H [22;59H [22;60H [22;61H [22;62H [22;63H [22;64H [22;65H [22;66H [22;67H [22;68H [22;69H [22;70H [22;71H [22;72H [0m[23;4H[39m[49m [23;5H [23;6H [23;7H [23;8H [23;9H [23;10H [23;11H [23;12H [23;13H [23;14H [23;15H [23;16H [23;17H [23;18H [23;19H [23;20H [23;21H [23;22H [23;23H [23;24H [23;25H [23;26H [23;27H [23;28H [23;29H [23;30H [23;31H [23;32H [23;33H [23;34H [23;35H [23;41H [23;42H [23;43H [23;44H [23;45H [23;46H [23;47H [23;48H [23;49H [23;50H [23;51H [23;52H [23;53H [23;54H [23;55H [23;56H [23;57H [23;58H [23;59H [23;60H [23;61H [23;62H [23;63H [23;64H [23;65H [23;66H [23;67H [23;68H [23;69H [23;70H [23;71H [23;72H [0m[24;4H[39m[49m(0l(B[24;5H(0q(B[24;6H [24;7HT[24;8He[24;9Hs[24;10Ht[24;11H [24;12H5[24;13H [24;14H(0q(B[24;15H(0q(B[24;16H(0q(B[24;17H(0q(B[24;18H(0q(B[24;19H(0q(B[24;20H(0q(B[24;21H(0q(B[24;22H(0q(B[24;23H(0q(B[24;24H(0q(B[24;25H(0q(B[24;26H(0q(B[24;27H(0q(B[24;28H(0q(B[24;29H(0q(B[24;30H(0q(B[24;31H(0q(B[24;32H(0q(B[24;33H(0q(B[24;34H(0q(B[24;35H(0k(B[24;41H(0l(B[24;42H(0q(B[24;43H [24;44HT[24;45He[24;46Hs[24;47Ht[24;48H [24;49H6[24;50H [24;51H(0q(B[24;52H(0q(B[24;53H(0q(B[24;54H(0q(B[24;55H(0q(B[24;56H(0q(B[24;57H(0q(B[24;58H(0q(B[24;59H(0q(B[24;60H(0q(B[24;61H(0q(B[24;62H(0q(B[24;63H(0q(B[24;64H(0q(B[24;65H(0q(B[24;66H(0q(B[24;67H(0q(B[24;68H(0q(B[24;69H(0q(B[24;70H(0q(B[24;71H(0q(B[24;72H(0k(B[0m[25;4H[39m[49m(0x(B[25;5H[38;5;27m[49m [25;6H [25;7H [25;8H [25;9Hv[25;10Hi[25;11He[25;12Hw[25;13H-[25;14H>[25;15Hl[25;16Hi[25;17Hn[25;18He[25;19Hs[25;20H-[25;21H>[25;22Hc[25;23He[25;24Hn[25;25Ht[25;26Hr[25;27He[25;28H [25;29H1[25;30H [25;31H [25;32H [25;33H [25;34H [25;35H[39m[49m(0x(B[25;41H(0x(B[25;42H[38;5;231m[48;5;124mv[25;43H-[25;44H>[25;45Hl[25;46H-[25;47H>[25;48Hl[25;49He[25;50Hf[25;51Ht[25;52H [25;53H [25;54H [25;55H [25;56H [25;57H[38;5;231m[48;5;21m [25;58H [25;59H [25;60H [25;61Hv[25;62H-[25;63H>[25;64Hl[25;65H-[25;66H>[25;67Hr[25;68Hi[25;69Hg[25;70Hh[25;71Ht[25;72H[39m[49m(0x(B[0m[26;4H[39m[49m(0x(B[26;5H[38;5;16m[48;5;27m [26;6H [26;7H [26;8H [26;9Hv[26;10Hi[26;11He[26;12Hw[26;13H-[26;14H>[26;15Hl[26;16Hi[26;17Hn[26;18He[26;19Hs[26;20H-[26;21H>[26;22Hc[26;23He[26;24Hn[26;25Ht[26;26Hr[26;27He[26;28H [26;29H2[26;30H [26;31H [26;32H [26;33H [26;34H [26;35H[39m[49m(0x(B[26;41H(0x(B[26;42H[38;5;231m[48;5;28m [26;43H [26;44H [26;45H [26;46H [26;47H [26;48H [26;49H [26;50H [26;51Hv[26;52H-[26;53H>[26;54Hl[26;55H-[26;56H>[26;57Hc[26;58He[26;59Hn[26;60Ht[26;61Hr[26;62He[26;63H [26;64H [26;65H [26;66H [26;67H [26;68H [26;69H [26;70H [26;71H [26;72H[39m[49m(0x(B[0m[27;4H[39m[49m(0x(B[27;5H [27;6H [27;7H [27;8H [27;9H [27;10H [27;11H [27;12H [27;13H [27;14H [27;15H [27;16H [27;17H [27;18H [27;19H [27;20H [27;21H [27;22H [27;23H [27;24H [27;25H [27;26H [27;27H [27;28H [27;29H [27;30H [27;31H [27;32H [27;33H [27;34H [27;35H(0x(B[27;41H(0x(B[27;42H [27;43H [27;44H [27;45H [27;46H [27;47H [27;48H [27;49H [27;50H [27;51H [27;52H [27;53H [27;54H [27;55H [27;56H [27;57H [27;58H [27;59H [27;60H [27;61H [27;62H [27;63H [27;64H [27;65H [27;66H [27;67H [27;68H [27;69H [27;70H [27;71H [27;72H(0x(B[0m
|
@@ -9,6 +9,16 @@ class DSLApp
|
|
9
9
|
|
10
10
|
Vedeu.configure do
|
11
11
|
log '/tmp/vedeu_views_dsl.log'
|
12
|
+
renderers(Vedeu::Renderers::Terminal.new(
|
13
|
+
filename: '/tmp/vedeu_full_screen.out',
|
14
|
+
write_file: true),
|
15
|
+
Vedeu::Renderers::JSON.new(
|
16
|
+
filename: '/tmp/vedeu_full_screen.json'),
|
17
|
+
Vedeu::Renderers::HTML.new(
|
18
|
+
filename: '/tmp/vedeu_full_screen.html'),
|
19
|
+
Vedeu::Renderers::Text.new(
|
20
|
+
filename: '/tmp/vedeu_full_screen.txt')
|
21
|
+
)
|
12
22
|
debug!
|
13
23
|
run_once!
|
14
24
|
standalone!
|
data/examples/views/line.rb
CHANGED
@@ -12,116 +12,21 @@ class DSLApp
|
|
12
12
|
Vedeu.configure do
|
13
13
|
debug!
|
14
14
|
log '/tmp/vedeu_views_dsl.log'
|
15
|
-
renderers(Vedeu::Renderers::Terminal.new
|
16
|
-
|
15
|
+
renderers(Vedeu::Renderers::Terminal.new(
|
16
|
+
filename: '/tmp/vedeu_line.out',
|
17
|
+
write_file: true),
|
18
|
+
Vedeu::Renderers::JSON.new(
|
19
|
+
filename: '/tmp/vedeu_line.json'),
|
20
|
+
Vedeu::Renderers::HTML.new(
|
21
|
+
filename: '/tmp/vedeu_line.html'),
|
22
|
+
Vedeu::Renderers::Text.new(
|
23
|
+
filename: '/tmp/vedeu_line.txt')
|
24
|
+
)
|
17
25
|
run_once!
|
18
26
|
standalone!
|
19
27
|
end
|
20
28
|
|
21
|
-
|
22
|
-
border do
|
23
|
-
title 'Test 1'
|
24
|
-
end
|
25
|
-
geometry do
|
26
|
-
x 4
|
27
|
-
y 3
|
28
|
-
xn 34
|
29
|
-
yn 8
|
30
|
-
end
|
31
|
-
end
|
32
|
-
|
33
|
-
Vedeu.interface :help1_interface do
|
34
|
-
geometry do
|
35
|
-
x use(:test1_interface).x
|
36
|
-
y use(:test1_interface).south
|
37
|
-
xn use(:test1_interface).xn
|
38
|
-
yn use(:test1_interface).south(3)
|
39
|
-
end
|
40
|
-
end
|
41
|
-
|
42
|
-
Vedeu.interface :test2_interface do
|
43
|
-
border do
|
44
|
-
title 'Test 2'
|
45
|
-
end
|
46
|
-
geometry do
|
47
|
-
x use(:test1_interface).east(6)
|
48
|
-
y use(:test1_interface).y
|
49
|
-
width use(:test1_interface).width
|
50
|
-
height use(:test1_interface).height
|
51
|
-
end
|
52
|
-
end
|
53
|
-
|
54
|
-
Vedeu.interface :help2_interface do
|
55
|
-
geometry do
|
56
|
-
x use(:test2_interface).x
|
57
|
-
y use(:test2_interface).south
|
58
|
-
xn use(:test2_interface).xn
|
59
|
-
yn use(:test2_interface).south(3)
|
60
|
-
end
|
61
|
-
end
|
62
|
-
|
63
|
-
Vedeu.interface :test3_interface do
|
64
|
-
border do
|
65
|
-
title 'Test 3'
|
66
|
-
end
|
67
|
-
geometry do
|
68
|
-
x use(:help1_interface).x
|
69
|
-
y use(:help1_interface).south
|
70
|
-
xn use(:help1_interface).xn
|
71
|
-
yn use(:help1_interface).south(5)
|
72
|
-
end
|
73
|
-
end
|
74
|
-
|
75
|
-
Vedeu.interface :help3_interface do
|
76
|
-
geometry do
|
77
|
-
x use(:test3_interface).x
|
78
|
-
y use(:test3_interface).south
|
79
|
-
xn use(:test3_interface).xn
|
80
|
-
yn use(:test3_interface).south(5)
|
81
|
-
end
|
82
|
-
end
|
83
|
-
|
84
|
-
Vedeu.interface :test4_interface do
|
85
|
-
border do
|
86
|
-
title 'Test 4'
|
87
|
-
end
|
88
|
-
geometry do
|
89
|
-
x use(:help2_interface).x
|
90
|
-
y use(:help2_interface).south
|
91
|
-
xn use(:help2_interface).xn
|
92
|
-
yn use(:help2_interface).south(5)
|
93
|
-
end
|
94
|
-
end
|
95
|
-
|
96
|
-
Vedeu.interface :help4_interface do
|
97
|
-
geometry do
|
98
|
-
x use(:test4_interface).x
|
99
|
-
y use(:test4_interface).south
|
100
|
-
xn use(:test4_interface).xn
|
101
|
-
yn use(:test4_interface).south(5)
|
102
|
-
end
|
103
|
-
end
|
104
|
-
|
105
|
-
Vedeu.interface :test5_interface do
|
106
|
-
border do
|
107
|
-
title 'Test 5'
|
108
|
-
end
|
109
|
-
geometry do
|
110
|
-
x use(:help1_interface).x
|
111
|
-
y use(:help3_interface).south
|
112
|
-
xn use(:help1_interface).xn
|
113
|
-
yn use(:help3_interface).south(5)
|
114
|
-
end
|
115
|
-
end
|
116
|
-
|
117
|
-
Vedeu.interface :help5_interface do
|
118
|
-
geometry do
|
119
|
-
x use(:test5_interface).x
|
120
|
-
y use(:test5_interface).south
|
121
|
-
xn use(:test5_interface).xn
|
122
|
-
yn use(:test5_interface).south(5)
|
123
|
-
end
|
124
|
-
end
|
29
|
+
load './_interfaces.rb'
|
125
30
|
|
126
31
|
Vedeu.render do
|
127
32
|
view(:test1_interface) do
|
data/examples/views/lines.rb
CHANGED
@@ -12,137 +12,18 @@ class DSLApp
|
|
12
12
|
Vedeu.configure do
|
13
13
|
debug!
|
14
14
|
log '/tmp/vedeu_views_dsl.log'
|
15
|
-
renderers(Vedeu::Renderers::Terminal.new
|
16
|
-
|
15
|
+
renderers(Vedeu::Renderers::Terminal.new(
|
16
|
+
filename: '/tmp/vedeu_lines.out',
|
17
|
+
write_file: true),
|
18
|
+
Vedeu::Renderers::JSON.new(
|
19
|
+
filename: '/tmp/vedeu_lines.json'),
|
20
|
+
Vedeu::Renderers::HTML.new(
|
21
|
+
filename: '/tmp/vedeu_lines.html'))
|
17
22
|
run_once!
|
18
23
|
standalone!
|
19
24
|
end
|
20
25
|
|
21
|
-
|
22
|
-
border do
|
23
|
-
title 'Test 1'
|
24
|
-
end
|
25
|
-
geometry do
|
26
|
-
x 4
|
27
|
-
y 3
|
28
|
-
xn 34
|
29
|
-
yn 8
|
30
|
-
end
|
31
|
-
end
|
32
|
-
|
33
|
-
Vedeu.interface :help1_interface do
|
34
|
-
geometry do
|
35
|
-
x use(:test1_interface).x
|
36
|
-
y use(:test1_interface).south
|
37
|
-
xn use(:test1_interface).xn
|
38
|
-
yn use(:test1_interface).south(3)
|
39
|
-
end
|
40
|
-
end
|
41
|
-
|
42
|
-
Vedeu.interface :test2_interface do
|
43
|
-
border do
|
44
|
-
title 'Test 2'
|
45
|
-
end
|
46
|
-
geometry do
|
47
|
-
x use(:test1_interface).east(6)
|
48
|
-
y use(:test1_interface).y
|
49
|
-
width use(:test1_interface).width
|
50
|
-
height use(:test1_interface).height
|
51
|
-
end
|
52
|
-
end
|
53
|
-
|
54
|
-
Vedeu.interface :help2_interface do
|
55
|
-
geometry do
|
56
|
-
x use(:test2_interface).x
|
57
|
-
y use(:test2_interface).south
|
58
|
-
xn use(:test2_interface).xn
|
59
|
-
yn use(:test2_interface).south(3)
|
60
|
-
end
|
61
|
-
end
|
62
|
-
|
63
|
-
Vedeu.interface :test3_interface do
|
64
|
-
border do
|
65
|
-
title 'Test 3'
|
66
|
-
end
|
67
|
-
geometry do
|
68
|
-
x use(:help1_interface).x
|
69
|
-
y use(:help1_interface).south
|
70
|
-
xn use(:help1_interface).xn
|
71
|
-
yn use(:help1_interface).south(5)
|
72
|
-
end
|
73
|
-
end
|
74
|
-
|
75
|
-
Vedeu.interface :help3_interface do
|
76
|
-
geometry do
|
77
|
-
x use(:test3_interface).x
|
78
|
-
y use(:test3_interface).south
|
79
|
-
xn use(:test3_interface).xn
|
80
|
-
yn use(:test3_interface).south(5)
|
81
|
-
end
|
82
|
-
end
|
83
|
-
|
84
|
-
Vedeu.interface :test4_interface do
|
85
|
-
border do
|
86
|
-
title 'Test 4'
|
87
|
-
end
|
88
|
-
geometry do
|
89
|
-
x use(:help2_interface).x
|
90
|
-
y use(:help2_interface).south
|
91
|
-
xn use(:help2_interface).xn
|
92
|
-
yn use(:help2_interface).south(5)
|
93
|
-
end
|
94
|
-
end
|
95
|
-
|
96
|
-
Vedeu.interface :help4_interface do
|
97
|
-
geometry do
|
98
|
-
x use(:test4_interface).x
|
99
|
-
y use(:test4_interface).south
|
100
|
-
xn use(:test4_interface).xn
|
101
|
-
yn use(:test4_interface).south(5)
|
102
|
-
end
|
103
|
-
end
|
104
|
-
|
105
|
-
Vedeu.interface :test5_interface do
|
106
|
-
border do
|
107
|
-
title 'Test 5'
|
108
|
-
end
|
109
|
-
geometry do
|
110
|
-
x use(:help1_interface).x
|
111
|
-
y use(:help3_interface).south
|
112
|
-
xn use(:help1_interface).xn
|
113
|
-
yn use(:help3_interface).south(5)
|
114
|
-
end
|
115
|
-
end
|
116
|
-
|
117
|
-
Vedeu.interface :help5_interface do
|
118
|
-
geometry do
|
119
|
-
x use(:test5_interface).x
|
120
|
-
y use(:test5_interface).south
|
121
|
-
xn use(:test5_interface).xn
|
122
|
-
yn use(:test5_interface).south(5)
|
123
|
-
end
|
124
|
-
end
|
125
|
-
|
126
|
-
Vedeu.interface :test6_interface do
|
127
|
-
border do
|
128
|
-
title 'Test 6'
|
129
|
-
end
|
130
|
-
geometry do
|
131
|
-
x use(:help4_interface).x
|
132
|
-
y use(:help4_interface).south
|
133
|
-
xn use(:help4_interface).xn
|
134
|
-
yn use(:help4_interface).south(5)
|
135
|
-
end
|
136
|
-
end
|
137
|
-
|
138
|
-
Vedeu.interface :help6_interface do
|
139
|
-
geometry do
|
140
|
-
x use(:test6_interface).x
|
141
|
-
y use(:test6_interface).south
|
142
|
-
xn use(:test6_interface).xn
|
143
|
-
yn use(:test6_interface).south(5)
|
144
|
-
end
|
145
|
-
end
|
26
|
+
load './_interfaces.rb'
|
146
27
|
|
147
28
|
Vedeu.render do
|
148
29
|
view(:test1_interface) do
|
@@ -12,140 +12,32 @@ class DSLApp
|
|
12
12
|
Vedeu.configure do
|
13
13
|
debug!
|
14
14
|
log '/tmp/vedeu_views_dsl.log'
|
15
|
-
renderers(Vedeu::Renderers::Terminal.new
|
16
|
-
|
15
|
+
renderers(Vedeu::Renderers::Terminal.new(
|
16
|
+
filename: '/tmp/vedeu_lines_alignment.out',
|
17
|
+
write_file: true),
|
18
|
+
Vedeu::Renderers::JSON.new(
|
19
|
+
filename: '/tmp/vedeu_lines_alignment.json'),
|
20
|
+
Vedeu::Renderers::HTML.new(
|
21
|
+
filename: '/tmp/vedeu_lines_alignment.html'),
|
22
|
+
Vedeu::Renderers::Text.new(
|
23
|
+
filename: '/tmp/vedeu_lines_alignment.txt')
|
24
|
+
)
|
17
25
|
run_once!
|
18
26
|
standalone!
|
19
27
|
end
|
20
28
|
|
21
|
-
|
22
|
-
border do
|
23
|
-
title 'Test 1'
|
24
|
-
end
|
25
|
-
geometry do
|
26
|
-
x 4
|
27
|
-
y 3
|
28
|
-
xn 35
|
29
|
-
yn 8
|
30
|
-
end
|
31
|
-
end
|
32
|
-
|
33
|
-
Vedeu.interface :help1_interface do
|
34
|
-
geometry do
|
35
|
-
x use(:test1_interface).x
|
36
|
-
y use(:test1_interface).south
|
37
|
-
xn use(:test1_interface).xn
|
38
|
-
yn use(:test1_interface).south(5)
|
39
|
-
end
|
40
|
-
end
|
41
|
-
|
42
|
-
Vedeu.interface :test2_interface do
|
43
|
-
border do
|
44
|
-
title 'Test 2'
|
45
|
-
end
|
46
|
-
geometry do
|
47
|
-
x use(:test1_interface).east(6)
|
48
|
-
y use(:test1_interface).y
|
49
|
-
width use(:test1_interface).width
|
50
|
-
height use(:test1_interface).height
|
51
|
-
end
|
52
|
-
end
|
53
|
-
|
54
|
-
Vedeu.interface :help2_interface do
|
55
|
-
geometry do
|
56
|
-
x use(:test2_interface).x
|
57
|
-
y use(:test2_interface).south
|
58
|
-
xn use(:test2_interface).xn
|
59
|
-
yn use(:test2_interface).south(5)
|
60
|
-
end
|
61
|
-
end
|
62
|
-
|
63
|
-
Vedeu.interface :test3_interface do
|
64
|
-
border do
|
65
|
-
title 'Test 3'
|
66
|
-
end
|
67
|
-
geometry do
|
68
|
-
x use(:help1_interface).x
|
69
|
-
y use(:help1_interface).south
|
70
|
-
xn use(:help1_interface).xn
|
71
|
-
yn use(:help1_interface).south(5)
|
72
|
-
end
|
73
|
-
end
|
74
|
-
|
75
|
-
Vedeu.interface :help3_interface do
|
76
|
-
geometry do
|
77
|
-
x use(:test3_interface).x
|
78
|
-
y use(:test3_interface).south
|
79
|
-
xn use(:test3_interface).xn
|
80
|
-
yn use(:test3_interface).south(5)
|
81
|
-
end
|
82
|
-
end
|
29
|
+
load './_interfaces.rb'
|
83
30
|
|
84
|
-
Vedeu.
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
geometry do
|
89
|
-
x use(:help2_interface).x
|
90
|
-
y use(:help2_interface).south
|
91
|
-
xn use(:help2_interface).xn
|
92
|
-
yn use(:help2_interface).south(5)
|
93
|
-
end
|
94
|
-
end
|
95
|
-
|
96
|
-
Vedeu.interface :help4_interface do
|
97
|
-
geometry do
|
98
|
-
x use(:test4_interface).x
|
99
|
-
y use(:test4_interface).south
|
100
|
-
xn use(:test4_interface).xn
|
101
|
-
yn use(:test4_interface).south(5)
|
102
|
-
end
|
103
|
-
end
|
104
|
-
|
105
|
-
Vedeu.interface :test5_interface do
|
106
|
-
border do
|
107
|
-
title 'Test 5'
|
108
|
-
end
|
109
|
-
geometry do
|
110
|
-
x use(:help1_interface).x
|
111
|
-
y use(:help3_interface).south
|
112
|
-
xn use(:help1_interface).xn
|
113
|
-
yn use(:help3_interface).south(5)
|
114
|
-
end
|
115
|
-
end
|
116
|
-
|
117
|
-
Vedeu.interface :help5_interface do
|
118
|
-
geometry do
|
119
|
-
x use(:test5_interface).x
|
120
|
-
y use(:test5_interface).south
|
121
|
-
xn use(:test5_interface).xn
|
122
|
-
yn use(:test5_interface).south(5)
|
123
|
-
end
|
124
|
-
end
|
125
|
-
|
126
|
-
Vedeu.interface :test6_interface do
|
127
|
-
border do
|
128
|
-
title 'Test 6'
|
129
|
-
end
|
130
|
-
geometry do
|
131
|
-
x use(:help4_interface).x
|
132
|
-
y use(:help4_interface).south
|
133
|
-
xn use(:help4_interface).xn
|
134
|
-
yn use(:help4_interface).south(5)
|
135
|
-
end
|
136
|
-
end
|
137
|
-
|
138
|
-
Vedeu.interface :help6_interface do
|
139
|
-
geometry do
|
140
|
-
x use(:test6_interface).x
|
141
|
-
y use(:test6_interface).south
|
142
|
-
xn use(:test6_interface).xn
|
143
|
-
yn use(:test6_interface).south(5)
|
144
|
-
end
|
31
|
+
Vedeu.border :test2_interface do
|
32
|
+
background '#220022'
|
33
|
+
foreground '#00aaff'
|
34
|
+
title 'Test 2'
|
145
35
|
end
|
146
36
|
|
147
37
|
Vedeu.render do
|
148
38
|
view(:test1_interface) do
|
39
|
+
background '#002200'
|
40
|
+
foreground '#aaff00'
|
149
41
|
line 'view->line (align: :left)', { align: :left }
|
150
42
|
line 'view->line (align: :center)', { align: :center }
|
151
43
|
line 'view->line (align: :centre)', { align: :centre }
|