tests: add some on box selections (with ctrl)
This commit is contained in:
parent
eb4a3f9920
commit
0b63b6cb80
|
@ -0,0 +1,84 @@
|
|||
#!/bin/sh
|
||||
|
||||
|
||||
# fill space with E
|
||||
printf '\033#8'
|
||||
# set color
|
||||
printf '\033[46;31;3m'
|
||||
|
||||
##
|
||||
# Mouse box selection with ctrl
|
||||
##
|
||||
|
||||
# mouse down to start box selection (with ctrl=4)
|
||||
printf '\033}td;20;10;1;4;0\0'
|
||||
|
||||
# mouse move
|
||||
printf '\033}tm;48;28;4\0'
|
||||
|
||||
# mouse up (with ctrl=4)
|
||||
printf '\033}tu;48;28;1;4;0\0'
|
||||
|
||||
# force render
|
||||
printf '\033}tr\0'
|
||||
|
||||
# selection is 'EEEEE\nEEEEE'
|
||||
printf '\033}tsEEEEE\nEEEEE\0'
|
||||
|
||||
# insert E in color
|
||||
printf '\033[;4HE'
|
||||
|
||||
# force render
|
||||
printf '\033}tr\0'
|
||||
|
||||
# selection is 'EEEEE\nEEEEE'
|
||||
printf '\033}tsEEEEE\nEEEEE\0'
|
||||
|
||||
# insert a
|
||||
printf 'a'
|
||||
|
||||
# force render
|
||||
printf '\033}tr\0'
|
||||
|
||||
# no more selection
|
||||
printf '\033}tn\0'
|
||||
|
||||
##
|
||||
# Same with ctrl unset on mouse up
|
||||
##
|
||||
|
||||
# fill space with E
|
||||
printf '\033#8'
|
||||
|
||||
# mouse down to start box selection (with ctrl=4)
|
||||
printf '\033}td;20;10;1;4;0\0'
|
||||
|
||||
# mouse move (no ctrl)
|
||||
printf '\033}tm;48;28;0\0'
|
||||
|
||||
# mouse up (ctrl is no needed here)
|
||||
printf '\033}tu;48;28;1;0;0\0'
|
||||
|
||||
# force render
|
||||
printf '\033}tr\0'
|
||||
|
||||
# selection is 'EEEEE\nEEEEE'
|
||||
printf '\033}tsEEEEE\nEEEEE\0'
|
||||
|
||||
# insert E in color
|
||||
printf '\033[;4HE'
|
||||
|
||||
# force render
|
||||
printf '\033}tr\0'
|
||||
|
||||
# selection is 'EEEEE\nEEEEE'
|
||||
printf '\033}tsEEEEE\nEEEEE\0'
|
||||
|
||||
# insert a
|
||||
printf 'a'
|
||||
|
||||
# force render
|
||||
printf '\033}tr\0'
|
||||
|
||||
# no more selection
|
||||
printf '\033}tn\0'
|
|
@ -78,3 +78,4 @@ vpa.sh c712e5c3c5e31a362e4257200d92d9a6
|
|||
decswbv.sh f7dde335d44f8691041d40c3efd24ffb
|
||||
c2.sh 1ee773a0e5ac3c0217d08e4afdb1fef6
|
||||
selection_simple.sh 6e1f48cd44beba3923e3e84ed4238dac
|
||||
selection_box_simple.sh 6e1f48cd44beba3923e3e84ed4238dac
|
||||
|
|
Loading…
Reference in New Issue