tests: add one about selecting over empty lines

terminology-1.6
Boris Faure 3 years ago
parent 8e3263d42a
commit 1333e80866
Signed by: borisfaure
GPG Key ID: EAA9CD729F522998
  1. 42
      tests/selection_empty_lines.sh
  2. 1
      tests/tests.results

@ -0,0 +1,42 @@
#!/bin/sh
# char width: 7
# char height: 15
# clear screen
printf '\033[2J'
# set color
printf '\033[46;31;3m'
#move to 0,0
printf '\033[H'
# 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 upon thee."
printf "%s\r\n\r\n%s" "$TEXT" "$TEXT"
# mouse down to start selection
printf '\033}td;16;85;1;0;0\0'
# mouse move
printf '\033}tm;244;150;0\0'
# mouse up
printf '\033}tu;244;150;1;0;0\0'
# force render
printf '\033}tr\0'
# selection is
printf '\033}tsdestroy My brothers. And you will know My name is the Lord when I lay My vengeance upon thee.\n\nThe path of the righteous man is beset on all sides by the iniquities of the selfish and the tyranny of evil men. B\0'
# remove selection
printf '\033}td;0;0;1;0;0\0\033}tu;0;0;1;0;0\0'
# force render
printf '\033}tr\0'
# no more selection
printf '\033}tn\0'

@ -121,3 +121,4 @@ shift_in_out.sh 3896bcc6887998bbc41b43840a6b2e33
osc-11-query.sh b762d503e40641ff896dac46391ad7a8
link_detection.sh bbe87a849586e8b922f26ad5d88146dc
selection_with_tabs.sh 23557497a8f28ca246048bb2443b3dab
selection_empty_lines.sh 7a90d9bfde9e9fb7f067f6c08eac57ff

Loading…
Cancel
Save