aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorBoris Faure <billiob@gmail.com>2018-12-29 22:13:58 +0100
committerBoris Faure <billiob@gmail.com>2018-12-29 22:13:58 +0100
commitfee45b5492bce86322e2c89b5466b9a246af6ad0 (patch)
tree8b3e6cf2ffe5fe9b4f7526b1490f127580c3f066 /tests
parenttermptyesc: handle DECRARA in its rectangular form + tests (diff)
downloadterminology-fee45b5492bce86322e2c89b5466b9a246af6ad0.tar.gz
termptyesc: DECCRARA/DECRARA when not in rectangle mode + tests
Diffstat (limited to 'tests')
-rwxr-xr-xtests/deccara-no-rectangular-no-restrict-cursor.sh63
-rwxr-xr-xtests/deccara-no-rectangular-restrict-cursor.sh65
-rwxr-xr-xtests/decrara-no-rectangular-no-restrict-cursor.sh63
-rwxr-xr-xtests/decrara-no-rectangular-restrict-cursor.sh66
-rwxr-xr-xtests/decrara-rectangular-no-restrict-cursor.sh4
-rwxr-xr-xtests/decrara-rectangular-restrict-cursor.sh4
-rw-r--r--tests/tests.results4
7 files changed, 265 insertions, 4 deletions
diff --git a/tests/deccara-no-rectangular-no-restrict-cursor.sh b/tests/deccara-no-rectangular-no-restrict-cursor.sh
new file mode 100755
index 0000000..7072dc8
--- /dev/null
+++ b/tests/deccara-no-rectangular-no-restrict-cursor.sh
@@ -0,0 +1,63 @@
+#!/bin/sh
+
+# move to 0; 0
+printf '\033[H'
+# fill space
+PL=0
+for _ in $(seq 0 23); do
+ PL=$((PL+1))
+ if [ $PL -ge 9 ] ; then
+ PL=0
+ fi
+ for _ in $(seq 1 $PL); do
+ printf '#'
+ done
+ PR=$((10 - PL))
+ for _ in $(seq 0 6); do
+ printf '\033[0;1m\-'
+ printf '\033[0;46;1;4m/'
+ printf '\033[0;46;1;4;5m|'
+ printf '\033[0;1;4;5;7m\\'
+ printf '\033[0m~'
+ printf '\033[0;1;5m_'
+ printf '\033[0;31;5;7m>'
+ printf '\033[0;31;4;7m^'
+ printf '\033[0;1;7m<'
+ done
+ printf '\033[0m'
+ for _ in $(seq 1 $PR); do
+ printf '#'
+ done
+done
+
+# move to 0; 0
+printf '\033[H'
+
+# no rectangular modifications
+printf '\033[1*x'
+
+# set top/bottom margins:
+printf '\033[1;24r'
+# allow left/right margins
+printf '\033[?69h'
+# set left/right margins:
+printf '\033[20;55s'
+
+# reset all
+printf '\033[2;10;4;65;0\044r'
+
+# reset all
+printf '\033[6;20;8;55;1;4;5;7\044r'
+
+# set bold/blink
+printf '\033[10;63;12;55;1;5\044r'
+
+# set bold/underline
+printf '\033[14;8;16;45;1;4\044r'
+
+# set underline/inverse
+# @xtermbug
+printf '\033[18;6;20;5;4;7\044r'
+
+# set underline/inverse
+printf '\033[21;6;21;65;4;7\044r'
diff --git a/tests/deccara-no-rectangular-restrict-cursor.sh b/tests/deccara-no-rectangular-restrict-cursor.sh
new file mode 100755
index 0000000..8354759
--- /dev/null
+++ b/tests/deccara-no-rectangular-restrict-cursor.sh
@@ -0,0 +1,65 @@
+#!/bin/sh
+
+# move to 0; 0
+printf '\033[H'
+# fill space
+PL=0
+for _ in $(seq 0 23); do
+ PL=$((PL+1))
+ if [ $PL -ge 9 ] ; then
+ PL=0
+ fi
+ for _ in $(seq 1 $PL); do
+ printf '#'
+ done
+ PR=$((10 - PL))
+ for _ in $(seq 0 6); do
+ printf '\033[0;1m\-'
+ printf '\033[0;46;1;4m/'
+ printf '\033[0;46;1;4;5m|'
+ printf '\033[0;1;4;5;7m\\'
+ printf '\033[0m~'
+ printf '\033[0;1;5m_'
+ printf '\033[0;31;5;7m>'
+ printf '\033[0;31;4;7m^'
+ printf '\033[0;1;7m<'
+ done
+ printf '\033[0m'
+ for _ in $(seq 1 $PR); do
+ printf '#'
+ done
+done
+
+# move to 0; 0
+printf '\033[H'
+
+# no rectangular modifications
+printf '\033[1*x'
+
+# set top/bottom margins:
+printf '\033[1;24r'
+# allow left/right margins
+printf '\033[?69h'
+# set left/right margins:
+printf '\033[20;55s'
+# restrict cursor
+printf '\033[?6h'
+
+# reset all
+printf '\033[2;10;4;65;0\044r'
+
+# reset all
+printf '\033[6;20;8;55;1;4;5;7\044r'
+
+# set bold/blink
+printf '\033[10;63;12;55;1;5\044r'
+
+# set bold/underline
+printf '\033[14;8;16;45;1;4\044r'
+
+# set underline/inverse
+# @xtermbug
+printf '\033[18;6;20;5;4;7\044r'
+
+# set underline/inverse
+printf '\033[21;6;21;65;4;7\044r'
diff --git a/tests/decrara-no-rectangular-no-restrict-cursor.sh b/tests/decrara-no-rectangular-no-restrict-cursor.sh
new file mode 100755
index 0000000..b1b99ff
--- /dev/null
+++ b/tests/decrara-no-rectangular-no-restrict-cursor.sh
@@ -0,0 +1,63 @@
+#!/bin/sh
+
+# move to 0; 0
+printf '\033[H'
+# fill space
+PL=0
+for _ in $(seq 0 23); do
+ PL=$((PL+1))
+ if [ $PL -ge 9 ] ; then
+ PL=0
+ fi
+ for _ in $(seq 1 $PL); do
+ printf '#'
+ done
+ PR=$((10 - PL))
+ for _ in $(seq 0 6); do
+ printf '\033[0;1m\-'
+ printf '\033[0;46;1;4m/'
+ printf '\033[0;46;1;4;5m|'
+ printf '\033[0;1;4;5;7m\\'
+ printf '\033[0m~'
+ printf '\033[0;1;5m_'
+ printf '\033[0;31;5;7m>'
+ printf '\033[0;31;4;7m^'
+ printf '\033[0;1;7m<'
+ done
+ printf '\033[0m'
+ for _ in $(seq 1 $PR); do
+ printf '#'
+ done
+done
+
+# move to 0; 0
+printf '\033[H'
+
+# no rectangular modifications
+printf '\033[1*x'
+
+# set top/bottom margins:
+printf '\033[1;24r'
+# allow left/right margins
+printf '\033[?69h'
+# set left/right margins:
+printf '\033[20;55s'
+
+# reverse all
+printf '\033[2;10;4;65;0\044t'
+
+# reverse all
+printf '\033[6;20;8;55;1;4;5;7\044t'
+
+# reverse bold/blink
+printf '\033[10;63;12;55;1;5\044t'
+
+# reverse bold/underline
+printf '\033[14;8;16;45;1;4\044t'
+
+# reverse underline/inverse
+# @xtermbug
+printf '\033[18;6;20;5;4;7\044t'
+
+# reverse underline/inverse
+printf '\033[21;6;21;65;4;7\044t'
diff --git a/tests/decrara-no-rectangular-restrict-cursor.sh b/tests/decrara-no-rectangular-restrict-cursor.sh
new file mode 100755
index 0000000..345b46e
--- /dev/null
+++ b/tests/decrara-no-rectangular-restrict-cursor.sh
@@ -0,0 +1,66 @@
+#!/bin/sh
+
+# move to 0; 0
+printf '\033[H'
+# fill space
+PL=0
+for _ in $(seq 0 23); do
+ PL=$((PL+1))
+ if [ $PL -ge 9 ] ; then
+ PL=0
+ fi
+ for _ in $(seq 1 $PL); do
+ printf '#'
+ done
+ PR=$((10 - PL))
+ for _ in $(seq 0 6); do
+ printf '\033[0;1m\-'
+ printf '\033[0;46;1;4m/'
+ printf '\033[0;46;1;4;5m|'
+ printf '\033[0;1;4;5;7m\\'
+ printf '\033[0m~'
+ printf '\033[0;1;5m_'
+ printf '\033[0;31;5;7m>'
+ printf '\033[0;31;4;7m^'
+ printf '\033[0;1;7m<'
+ done
+ printf '\033[0m'
+ for _ in $(seq 1 $PR); do
+ printf '#'
+ done
+done
+
+# move to 0; 0
+printf '\033[H'
+
+# no rectangular modifications
+printf '\033[1*x'
+
+# set top/bottom margins:
+printf '\033[1;24r'
+# allow left/right margins
+printf '\033[?69h'
+# set left/right margins:
+printf '\033[20;55s'
+
+# restrict cursor
+printf '\033[?6h'
+
+# reverse all
+printf '\033[2;10;4;65;0\044t'
+
+# reverse all
+printf '\033[6;20;8;55;1;4;5;7\044t'
+
+# reverse bold/blink
+printf '\033[10;63;12;55;1;5\044t'
+
+# reverse bold/underline
+printf '\033[14;8;16;45;1;4\044t'
+
+# reverse underline/inverse
+# @xtermbug
+printf '\033[18;6;20;5;4;7\044t'
+
+# reverse underline/inverse
+printf '\033[21;6;21;65;4;7\044t'
diff --git a/tests/decrara-rectangular-no-restrict-cursor.sh b/tests/decrara-rectangular-no-restrict-cursor.sh
index 982feba..1f1d513 100755
--- a/tests/decrara-rectangular-no-restrict-cursor.sh
+++ b/tests/decrara-rectangular-no-restrict-cursor.sh
@@ -39,10 +39,10 @@ printf '\033[5;20r'
# force rectangular modifications
printf '\033[2*x'
-# reset all
+# reverse all
printf '\033[1;10;80;15;0\044t'
-# reset all
+# reverse all
printf '\033[1;20;80;25;1;4;5;7\044t'
# reverse bold/blink
diff --git a/tests/decrara-rectangular-restrict-cursor.sh b/tests/decrara-rectangular-restrict-cursor.sh
index d5f8f9a..1555809 100755
--- a/tests/decrara-rectangular-restrict-cursor.sh
+++ b/tests/decrara-rectangular-restrict-cursor.sh
@@ -42,10 +42,10 @@ printf '\033[?6h'
# force rectangular modifications
printf '\033[2*x'
-# reset all
+# reverse all
printf '\033[1;10;80;15;0\044t'
-# reset all
+# reverse all
printf '\033[1;20;80;25;1;4;5;7\044t'
# reverse bold/blink
diff --git a/tests/tests.results b/tests/tests.results
index 856cd01..aeff779 100644
--- a/tests/tests.results
+++ b/tests/tests.results
@@ -43,5 +43,9 @@ decbi.sh 8153bff12a0d529cb8ba0dbff036a1ee
decfi.sh e93690447902b923d3d9d2ae72a31de4
deccara-rectangular-no-restrict-cursor.sh 0d04ff5f4a266917528ff8d17846c18a
deccara-rectangular-restrict-cursor.sh 9f23ac6a3423ba8bf7b8af5116e2843b
+deccara-no-rectangular-no-restrict-cursor.sh 692da353130f5fdaffc4e62a9102147c
+deccara-no-rectangular-restrict-cursor.sh eaa1a1f3e288fec06b917b1f953629c6
decrara-rectangular-no-restrict-cursor.sh be9836ff18eafb90795faecc042f34d6
decrara-rectangular-restrict-cursor.sh e98723f8f749e4902f7f4aaa677b85d6
+decrara-no-rectangular-no-restrict-cursor.sh c375dd5d6538aff4c920b022f32f4ab0
+decrara-no-rectangular-restrict-cursor.sh 815a848844cf7ea33d60e71948346a33