test: test escape code to get term name + version

obviously will have to change that on each new version…
This commit is contained in:
Boris Faure 2020-05-06 23:53:49 +02:00
parent 9977b8a63b
commit 52ab21783a
Signed by untrusted user who does not match committer: borisfaure
GPG Key ID: 35C0410516166BE8
2 changed files with 26 additions and 0 deletions

25
tests/esc_term_name_version.sh Executable file
View File

@ -0,0 +1,25 @@
#!/bin/sh
# fill space with E
printf '\033[69;1;1;25;80\044x'
#set color
printf '\033[46;31;3m'
# move
printf '\033[H'
# print terminal + version
printf '\033[>0q'
# let it print
sleep 0.2
# move
printf '\033[2H'
# print terminal + version
printf '\033[>q'
# let it print
sleep 0.2

View File

@ -134,3 +134,4 @@ selection_box_in_history.sh 61b78306851097efcfd1b41b777f15c9
selection_box_scrolls_up.sh c0fc70e8d865236d66edc7ad13af4dbe
selection_scrolls_down.sh c0fc70e8d865236d66edc7ad13af4dbe
selection_box_scrolls_down.sh c0fc70e8d865236d66edc7ad13af4dbe
esc_term_name_version.sh 4498d5f9f7d827bcd46774063510c712