2019-02-10 10:43:57 -08:00
|
|
|
#!/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'
|
|
|
|
|
2019-02-10 14:54:37 -08:00
|
|
|
# force render
|
|
|
|
printf '\033}tr\0'
|
|
|
|
|
2019-02-10 10:43:57 -08:00
|
|
|
# selection is 'EEEEE'
|
2019-02-23 08:41:54 -08:00
|
|
|
printf '\033}tsEEEEE\0'
|
2019-02-10 10:43:57 -08:00
|
|
|
|
|
|
|
# insert E in color
|
|
|
|
printf '\033[;4HE'
|
2019-02-10 14:54:37 -08:00
|
|
|
|
|
|
|
# force render
|
|
|
|
printf '\033}tr\0'
|
|
|
|
|
2019-02-10 10:43:57 -08:00
|
|
|
# selection is 'EEEEE'
|
2019-02-23 08:41:54 -08:00
|
|
|
printf '\033}tsEEEEE\0'
|
2019-02-10 10:43:57 -08:00
|
|
|
|
|
|
|
# insert a
|
|
|
|
printf 'a'
|
2019-02-10 14:54:37 -08:00
|
|
|
|
|
|
|
# force render
|
|
|
|
printf '\033}tr\0'
|
|
|
|
|
2019-02-10 10:43:57 -08:00
|
|
|
# no more selection
|
2019-02-10 14:54:37 -08:00
|
|
|
printf '\033}tn\0'
|