aboutsummaryrefslogtreecommitdiffstats
path: root/tests/cha.sh
diff options
context:
space:
mode:
authorBoris Faure <billiob@gmail.com>2019-01-01 20:19:17 +0100
committerBoris Faure <billiob@gmail.com>2019-01-01 20:19:17 +0100
commit36682a1b4e0f0227d4d72e7c7f4be60ccd7f751b (patch)
tree5194507f917cc197f36116c71ceeaa395941fecb /tests/cha.sh
parenttermptyesc: cleanup (diff)
downloadterminology-36682a1b4e0f0227d4d72e7c7f4be60ccd7f751b.tar.gz
termptyesc: CHA has to take into account DECOM + tests
Diffstat (limited to '')
-rwxr-xr-xtests/cha.sh38
1 files changed, 35 insertions, 3 deletions
diff --git a/tests/cha.sh b/tests/cha.sh
index 85e98c7..4bca96b 100755
--- a/tests/cha.sh
+++ b/tests/cha.sh
@@ -6,6 +6,38 @@ printf '\033[69;1;1;25;80\044x'
#set color
printf '\033[46;31;3m'
-printf '\033[3G1'
-printf '\033[G2'
-printf '\033[444444G3'
+# arg = 3
+printf '\033[1;10H1\033[3G1'
+
+# no arg
+printf '\033[2;10H2\033[G2'
+
+# go too far
+printf '\033[3;10H3\033[3333G3'
+
+# arg == 0
+printf '\033[4;10H4\033[0G4'
+
+# 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'
+
+# From inside to outside
+printf '\033[12;12HA\033[20GA'
+
+# From outside (on the left) to outside (on the right)
+printf '\033[12;2HB\033[40GB'
+
+# restrict cursor
+printf '\033[?6h'
+
+# From inside to inside
+printf '\033[4;4HC\033[6GC'
+
+# From inside to outside
+printf '\033[5;2HD\033[40GD'