tests: test that cursor restore does restore wrapnext status

Here, the tests restores the flag not set
This commit is contained in:
Boris Faure 2022-03-06 18:14:37 +01:00
parent 0f40fb4845
commit 50ea966dff
Signed by: borisfaure
GPG Key ID: EAA9CD729F522998
2 changed files with 29 additions and 0 deletions

View File

@ -0,0 +1,28 @@
#!/bin/sh
# fill space with E
printf '\033#8'
# set color
printf '\033[46;31;3m'
# move to start of line 3
printf '\033[3;0H'
# print O
printf 'O'
# save cursor
printf '\e7'
# move to end of line 3
printf '\033[3;80H'
# print A, that sets "wrapnext"
printf 'A'
# restore cursor: "wrapnext" should not be set
printf '\e8'
# print K. must be next to 'O'
printf 'K\n'

View File

@ -1,4 +1,5 @@
esc_term_name_version.sh eaa32a60e008258c7edfd363a624e0da
cursor-restore-wrapnext.sh 4b715ccc5afcd9684894eb8934bce333
decfra-no-restrict-cursor.sh f15874672d1ea46b8110ef58c2b40a91
decfra-restrict-cursor.sh f313f9cdc0723debe08219fcdf3ccd6e
decera-no-restrict-cursor.sh 945720993f1058d959b3600e1b3a7d0d