add simple test on selections

This commit is contained in:
Boris Faure 2019-02-10 19:43:57 +01:00
parent ac82934c83
commit 851e68d157
2 changed files with 30 additions and 0 deletions

29
tests/selection_simple.sh Executable file
View File

@ -0,0 +1,29 @@
#!/bin/sh
# fill space with E
printf '\033#8'
# set color
printf '\033[46;31;3m'
# mouse down to start selection
printf '\033}td;20;10;1;0;0\0'
# mouse move
printf '\033}tm;48;10\0'
# mouse up
printf '\033}tu;48;10;1;0;0\0'
# selection is 'EEEEE'
printf '\033}tiEEEEE\0'
# insert E in color
printf '\033[;4HE'
# selection is 'EEEEE'
printf '\033}tiEEEEE\0'
# insert a
printf 'a'
# no more selection
printf '\033}tn'

View File

@ -77,3 +77,4 @@ uts.sh 1c72fe49e7f98aac137d436ac4906bc8
vpa.sh c712e5c3c5e31a362e4257200d92d9a6
decswbv.sh f7dde335d44f8691041d40c3efd24ffb
c2.sh 1ee773a0e5ac3c0217d08e4afdb1fef6
selection_simple.sh 6e1f48cd44beba3923e3e84ed4238dac