billiob pushed a commit to branch master.

http://git.enlightenment.org/apps/terminology.git/commit/?id=6c29e8f208304f5150a22136bad6924a2ef59380

commit 6c29e8f208304f5150a22136bad6924a2ef59380
Author: Boris Faure <[email protected]>
Date:   Thu Feb 21 18:40:05 2019 +0100

    tests: add some where selections spans multiple lines
---
 tests/selection_over_multiple_lines.sh | 32 ++++++++++++++++++++++++++++++++
 tests/tests.results                    |  1 +
 2 files changed, 33 insertions(+)

diff --git a/tests/selection_over_multiple_lines.sh 
b/tests/selection_over_multiple_lines.sh
new file mode 100755
index 0000000..e6836d0
--- /dev/null
+++ b/tests/selection_over_multiple_lines.sh
@@ -0,0 +1,32 @@
+#!/bin/sh
+
+# char width: 7
+# char height: 15
+
+# clear screen
+printf '\033[2J'
+
+# set color
+printf '\033[46;31;3m'
+
+#move to 2,0
+printf '\033[2H'
+
+# set text
+TEXT="The path of the righteous man is beset on all sides by the iniquities of 
the selfish and the tyranny of evil men. Blessed is he who, in the name of 
charity and good will, shepherds the weak through the valley of darkness, for 
he is truly his brother's keeper and the finder of lost children. And I will 
strike down upon thee with great vengeance and furious anger those who would 
attempt to poison and destroy My brothers. And you will know My name is the 
Lord when I lay My vengeance u [...]
+
+# display text
+printf "%s\r\n%s" "$TEXT" "$TEXT"
+
+
+# mouse down to start selection
+printf '\033}td;35;118;1;0;0\0'
+# mouse move
+printf '\033}tm;125;135;0\0'
+# mouse up
+printf '\033}tu;125;135;1;0;0\0'
+# force render
+printf '\033}tr\0'
+# selection is
+printf '\033}tsupon thee.\nThe path of the ri\0'
+
diff --git a/tests/tests.results b/tests/tests.results
index 285c3b3..7bee606 100644
--- a/tests/tests.results
+++ b/tests/tests.results
@@ -88,3 +88,4 @@ selection_triple_click.sh 5b9bafc5802342ff3ee2bc6a8629cbe0
 selection_scrolls.sh 0cccd9abeeefb41b7cc6ca3350bfab7c
 selection_with_margins_scrolled.sh 9dd8ec681d09d03101b6e5dfcfaa632a
 selection_triple_click_in_history.sh 8f209978582bc223ad096cd694f2ee91
+selection_over_multiple_lines.sh 05ad30c0d462c1797b536ad0ebe59a60

-- 


Reply via email to