aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorBoris Faure <billiob@gmail.com>2018-12-24 18:22:30 +0100
committerBoris Faure <billiob@gmail.com>2018-12-27 22:14:44 +0100
commit6584612b20c35ca4419f67d13d97a63759016b34 (patch)
treeb706cb532867b2529187ce7c8f3e4738033d5d4d /tests
parenttermptyesc: cpl and margins + tests (diff)
downloadterminology-6584612b20c35ca4419f67d13d97a63759016b34.tar.gz
tests: add on CUP
Diffstat (limited to 'tests')
-rwxr-xr-xtests/cup.sh33
-rw-r--r--tests/tests.results1
2 files changed, 34 insertions, 0 deletions
diff --git a/tests/cup.sh b/tests/cup.sh
new file mode 100755
index 0000000..11224d2
--- /dev/null
+++ b/tests/cup.sh
@@ -0,0 +1,33 @@
+#!/bin/sh
+# fill space with E
+printf '\033[69;1;1;25;80$x'
+#set color
+printf '\033[46;31;3m'
+
+# move to 7; 7
+printf '\033[7;7HA'
+printf '\033[;8HB'
+printf '\033[8HC'
+printf '\033[9;HD'
+printf '\033[0;0HE'
+
+# 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$x'
+
+# move
+printf '\033[12;19HF'
+
+# set left/right margins:
+printf '\033[25;35s'
+# fill margin with @
+printf '\033[64;10;25;20;35$x'
+# restrict cursor
+printf '\033[?6h'
+# move
+printf '\033[2;2HG'
diff --git a/tests/tests.results b/tests/tests.results
index 94723ed..1acd4aa 100644
--- a/tests/tests.results
+++ b/tests/tests.results
@@ -34,3 +34,4 @@ cha.sh 04092c42102eb0d71ae700ee47c9ac34
dch.sh 40cf655681c098251f0dc3e7733c4db9
cnl.sh 1f1512179c8e47e4bd880142774a3c66
cpl.sh 9145c88adb762a6a59c5bf69191b949e
+cup.sh 11f5939a6cc990f6a7b9d1730ab3a8bf