billiob pushed a commit to branch master.

http://git.enlightenment.org/apps/terminology.git/commit/?id=910a78c9bcbcfb7a2b9431ba0f6bb9de9982b1f8

commit 910a78c9bcbcfb7a2b9431ba0f6bb9de9982b1f8
Author: Boris Faure <bill...@gmail.com>
Date:   Sun Nov 15 20:17:53 2020 +0100

    tests: add test on escape code OSC 12
---
 tests/tests.results   |  5 +++--
 tests/xterm-osc-12.sh | 25 +++++++++++++++++++++++++
 2 files changed, 28 insertions(+), 2 deletions(-)

diff --git a/tests/tests.results b/tests/tests.results
index 2ef9c34..893ad10 100644
--- a/tests/tests.results
+++ b/tests/tests.results
@@ -119,7 +119,7 @@ mouse_reporting_mode_normal_ext_urxvt.sh 
bf68099047410f102e71d2e451875c69
 mouse_reporting_mode_mouse_move_pressed_ext_urxvt.sh 
59f3e59b60b3a43260de6a80135489eb
 mouse_reporting_mode_all_ext_urxvt.sh a11bbc8ebea42d06cc3ad823b52c09b3
 shift_in_out.sh 3896bcc6887998bbc41b43840a6b2e33
-osc-11-query.sh b762d503e40641ff896dac46391ad7a8
+osc-11-query.sh 369e4e03be35dcb360e45d13fcd7da61
 link_detection.sh bbe87a849586e8b922f26ad5d88146dc
 selection_with_tabs.sh 23557497a8f28ca246048bb2443b3dab
 selection_empty_lines.sh 7a90d9bfde9e9fb7f067f6c08eac57ff
@@ -144,7 +144,8 @@ color_link_css_rgb.sh c1f5a5b4f3d87b710aed59f72439a645
 color_link_css_hsl.sh fc9bda72bd4eea5e9414ef9755ae176a
 crash_empty_osc.sh b87272896ce7be9856253b32be1bef14
 xterm-osc-10.sh b8c23c9c5482b1e9c30d8a261edc29f0
-xterm-osc-11.sh 3e02038964b78d948fb599c996bf370d
+xterm-osc-11.sh 29deaf351c40843f5280b78bf3009985
+xterm-osc-12.sh 400cffeb5f55fabecacb97f00ddc2128
 xterm-colors-sharp.sh 79d6f72df04237d76a0fa3e722dcec5b
 xterm-colors-rgb.sh d9b55817ef8428343105b44dabd535a8
 xterm-colors-rgbi.sh d9b55817ef8428343105b44dabd535a8
diff --git a/tests/xterm-osc-12.sh b/tests/xterm-osc-12.sh
new file mode 100755
index 0000000..42fbb3a
--- /dev/null
+++ b/tests/xterm-osc-12.sh
@@ -0,0 +1,25 @@
+#!/bin/sh
+
+# char width: 7
+# char height: 15
+
+# set color
+printf '\033[0;31;3m'
+
+# clear screen
+printf '\033[2J'
+
+# move to 0; 0
+printf '\033[0;0H'
+
+printf 'The purpose of computing is insight, not numbers.\r\n'
+printf 'Richard Hamming\r\n'
+
+# invalid colors
+printf '\033]12;#ff0\007'
+printf '\033]12;#FfFfFfFf\007'
+printf '\033]12;fff000\007'
+# change cursor color and then query it
+printf '\033]12;#ff00FF\007'
+printf '\033]12;?\007'
+sleep 0.1

-- 


Reply via email to