diff --git a/tests/cursor-restore-wrapnext.sh b/tests/cursor-restore-wrapnext.sh new file mode 100755 index 00000000..3314aa71 --- /dev/null +++ b/tests/cursor-restore-wrapnext.sh @@ -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' diff --git a/tests/tests.results b/tests/tests.results index d7f20215..5e132834 100644 --- a/tests/tests.results +++ b/tests/tests.results @@ -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