aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBoris Faure <billiob@gmail.com>2019-01-20 18:50:31 +0100
committerBoris Faure <billiob@gmail.com>2019-01-20 18:50:52 +0100
commita07299b2f4068d2c13a34b58fa044af4f1b12833 (patch)
treec6099ffc06507bc2cd86bfdcbc55d1b089ca1c67
parenttermptyesc: export VPA handler to its own function + tests (diff)
downloadterminology-a07299b2f4068d2c13a34b58fa044af4f1b12833.tar.gz
tests: add some on HVP
-rwxr-xr-xtests/hvp.sh40
-rw-r--r--tests/tests.results1
2 files changed, 41 insertions, 0 deletions
diff --git a/tests/hvp.sh b/tests/hvp.sh
new file mode 100755
index 0000000..05eeb76
--- /dev/null
+++ b/tests/hvp.sh
@@ -0,0 +1,40 @@
+#!/bin/sh
+# fill space with E
+printf '\033[69;1;1;25;80\044x'
+#set color
+printf '\033[46;31;3m'
+
+# move to 7; 7
+printf '\033[7;7fA'
+printf '\033[;8fB'
+printf '\033[8fC'
+printf '\033[9;fD'
+printf '\033[0;0fE'
+
+# set top/bottom margins:
+printf '\033[10;20r'
+# allow left/right margins
+printf '\033[?69h'
+# set left/right margins:
+printf '\033[5;15s'
+# fill margin with @
+printf '\033[64;10;5;20;15\044x'
+
+# move
+printf '\033[12;19fF'
+
+# Test outside margins
+printf '\033[22;22fG'
+
+# set left/right margins:
+printf '\033[25;35s'
+# fill margin with @
+printf '\033[64;10;25;20;35\044x'
+# restrict cursor
+printf '\033[?6h'
+# move
+printf '\033[2;2fH'
+
+# Test outside margins
+printf '\033[22;22fI'
+
diff --git a/tests/tests.results b/tests/tests.results
index 411e041..867a7df 100644
--- a/tests/tests.results
+++ b/tests/tests.results
@@ -37,6 +37,7 @@ dch.sh 40cf655681c098251f0dc3e7733c4db9
cnl.sh 1f1512179c8e47e4bd880142774a3c66
cpl.sh 9145c88adb762a6a59c5bf69191b949e
cup.sh 90545cad6d8202564e813fe9f80294f3
+hvp.sh 90545cad6d8202564e813fe9f80294f3
decaln.sh 9c0cf4de336193bcdaed6ba6c0d6f590
decawm.sh 84321e76f07b40cf9462238ec0919dc0
decbi.sh 8153bff12a0d529cb8ba0dbff036a1ee