aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorBoris Faure <billiob@gmail.com>2018-12-29 15:19:31 +0100
committerBoris Faure <billiob@gmail.com>2018-12-29 15:19:31 +0100
commit6e8faa30a762739bb07504134a20289eae8bb1bf (patch)
tree4414666057411341a2c788f8a4159216b58d35db /tests
parenttermptyesc: support DECFI (diff)
downloadterminology-6e8faa30a762739bb07504134a20289eae8bb1bf.tar.gz
termptyesc: refuse no value on decfra on the character to fill up + tests
Diffstat (limited to 'tests')
-rwxr-xr-xtests/decfi.sh1
-rwxr-xr-xtests/decfra-decera-default-values-no-restrict-cursor.sh38
-rwxr-xr-xtests/decfra-decera-default-values-restrict-cursor.sh43
-rw-r--r--tests/tests.results2
4 files changed, 84 insertions, 0 deletions
diff --git a/tests/decfi.sh b/tests/decfi.sh
index bcad382..b26f488 100755
--- a/tests/decfi.sh
+++ b/tests/decfi.sh
@@ -68,6 +68,7 @@ done
# move
printf '\033[11;81H'
# decfi, do nothing. Xterm seems change wrapping here. I don't see why
+# @xtermbug
printf 'f\033\071g'
# move
diff --git a/tests/decfra-decera-default-values-no-restrict-cursor.sh b/tests/decfra-decera-default-values-no-restrict-cursor.sh
new file mode 100755
index 0000000..06e8ee2
--- /dev/null
+++ b/tests/decfra-decera-default-values-no-restrict-cursor.sh
@@ -0,0 +1,38 @@
+#!/bin/sh
+
+# move to 0; 0
+printf '\033[H'
+# fill space
+for _ in $(seq 0 23); do
+ for _ in $(seq 0 7); do
+ printf '\-/|\\~_>^<'
+ done
+done
+
+# move to 0; 0
+printf '\033[H'
+
+#set color
+printf '\033[46;31;3m'
+# set top/bottom margins:
+printf '\033[5;20r'
+# allow left/right margins
+printf '\033[?69h'
+# set left/right margins:
+printf '\033[5;74s'
+
+# DECFRA
+# fill inside rect with nothing
+printf '\033[;10;40;15;45\044x'
+# fill inside rect with invalid value
+printf '\033[30;10;40;15;45\044x'
+# top left corner
+printf '\033[64;;;10;10\044x'
+# bottom right corner
+printf '\033[64;17;70;;\044x'
+
+# DECERA
+# top right corner
+printf '\033[;70;10;\044z'
+# bottom left corner
+printf '\033[17;;;10\044z'
diff --git a/tests/decfra-decera-default-values-restrict-cursor.sh b/tests/decfra-decera-default-values-restrict-cursor.sh
new file mode 100755
index 0000000..dcdc203
--- /dev/null
+++ b/tests/decfra-decera-default-values-restrict-cursor.sh
@@ -0,0 +1,43 @@
+#!/bin/sh
+
+# move to 0; 0
+printf '\033[H'
+# fill space
+for _ in $(seq 0 23); do
+ for _ in $(seq 0 7); do
+ printf '\-/|\\~_>^<'
+ done
+done
+
+# move to 0; 0
+printf '\033[H'
+
+#set color
+printf '\033[46;31;3m'
+# set top/bottom margins:
+printf '\033[2;23r'
+# allow left/right margins
+printf '\033[?69h'
+# set left/right margins:
+printf '\033[3;78s'
+
+# restrict cursor
+printf '\033[?6h'
+
+# DECFRA
+# fill inside rect with nothing
+printf '\033[;10;40;15;45\044x'
+# fill inside rect with invalid value
+printf '\033[30;10;40;15;45\044x'
+# top left corner
+# @xtermbug
+printf '\033[64;;;10;10\044x'
+# bottom right corner
+printf '\033[64;17;70;;\044x'
+
+# DECERA
+# top right corner
+printf '\033[;70;10;\044z'
+# bottom left corner
+# @xtermbug
+printf '\033[17;;;10\044z'
diff --git a/tests/tests.results b/tests/tests.results
index 5577705..f71bdb5 100644
--- a/tests/tests.results
+++ b/tests/tests.results
@@ -3,6 +3,8 @@ decfra-restrict-cursor.sh 0a595dc0088097dd235dd5c8801a3eb5
decera-no-restrict-cursor.sh 9d33acf9eca6eed4192e6d7f5104d202
decera-restrict-cursor.sh 89b15109e4e2ade943a2ab3990729931
decera-decfra-extra.sh abfe90a1df148bf15e7bf0d56163c76a
+decfra-decera-default-values-restrict-cursor.sh 9710ed6167f2127671dbab2d7dbeb1eb
+decfra-decera-default-values-no-restrict-cursor.sh 6508b473da2de3127dd65da0abe0c877
cursor-movements.sh 6b916da9bdb377e199bba69b1efefac6
fonts.sh d0dcea18258b95d5c869aa866fcae10f
cursor-shape-0.sh c91e01b0e859cc043f21d804a01bcd50