aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorBoris Faure <billiob@gmail.com>2018-12-09 16:06:42 +0100
committerBoris Faure <billiob@gmail.com>2018-12-27 22:14:44 +0100
commit479d96e5dc652b30e2993e63a5191e4b599d3d9b (patch)
tree52d6074a81d96e4f242ca4a26f30bfb08730bc02 /tests
parenttermptyesc: act as xterm-337 (diff)
downloadterminology-479d96e5dc652b30e2993e63a5191e4b599d3d9b.tar.gz
termptyesc: act like xterm, do not report title/icon-name
Diffstat (limited to 'tests')
-rw-r--r--tests/tests.results3
-rwxr-xr-xtests/xterm-osc-0-title-icon.sh19
-rwxr-xr-xtests/xterm-osc-1-icon.sh19
-rwxr-xr-xtests/xterm-osc-2-title.sh19
4 files changed, 60 insertions, 0 deletions
diff --git a/tests/tests.results b/tests/tests.results
index abd4bec..c9a8fe1 100644
--- a/tests/tests.results
+++ b/tests/tests.results
@@ -14,3 +14,6 @@ cursor-shape-5.sh 21332951c006a2d91cf0f227758ff477
cursor-shape-6.sh 21332951c006a2d91cf0f227758ff477
cursor-shape-7.sh 5d0dadf7273d918cbcd99df95e56795e
tabs.sh 960b74686e23e8e39c3446768b9efc75
+xterm-osc-0-title-icon.sh cb5080cc1dbc23b553b62fbdc8cbdf68
+xterm-osc-1-icon.sh 9202db6e81ce810f007035770934fecb
+xterm-osc-2-title.sh 49a058f1813bdd64faab1cf1af3ebe09
diff --git a/tests/xterm-osc-0-title-icon.sh b/tests/xterm-osc-0-title-icon.sh
new file mode 100755
index 0000000..b3be7a1
--- /dev/null
+++ b/tests/xterm-osc-0-title-icon.sh
@@ -0,0 +1,19 @@
+#!/bin/sh
+
+# fill space with E
+printf '\033#8'
+#set color
+printf '\033[46;31;3m'
+
+# set title + icon
+printf '\033]0;echo "fail"\n\007'
+
+# query title + icon, and device attributes
+printf '\033]0;?\007\033[>c'
+
+# set again title + icon
+printf '\033]0;title-icon-v2\007'
+
+# set empty
+printf '\033]0;\007'
+
diff --git a/tests/xterm-osc-1-icon.sh b/tests/xterm-osc-1-icon.sh
new file mode 100755
index 0000000..461f9c7
--- /dev/null
+++ b/tests/xterm-osc-1-icon.sh
@@ -0,0 +1,19 @@
+#!/bin/sh
+
+# fill space with E
+printf '\033#8'
+#set color
+printf '\033[46;31;3m'
+
+# set icon
+printf '\033]1;echo "fail"\n\007'
+
+# query icon, and device attributes
+printf '\033]1;?\007\033[>c'
+
+# set again icon
+printf '\033]1;icon-v2\007'
+
+# set empty
+printf '\033]1;\007'
+
diff --git a/tests/xterm-osc-2-title.sh b/tests/xterm-osc-2-title.sh
new file mode 100755
index 0000000..fedb237
--- /dev/null
+++ b/tests/xterm-osc-2-title.sh
@@ -0,0 +1,19 @@
+#!/bin/sh
+
+# fill space with E
+printf '\033#8'
+#set color
+printf '\033[46;31;3m'
+
+# set title
+printf '\033]2;echo "fail"\n\007'
+
+# query title, and device attributes
+printf '\033]2;?\007\033[>c'
+
+# set again title
+printf '\033]2;title-v2\007'
+
+# set empty
+printf '\033]2;\007'
+