billiob pushed a commit to branch master.

http://git.enlightenment.org/apps/terminology.git/commit/?id=7e4ab152a540c44e4eb51cb3dcb54798e05082c5

commit 7e4ab152a540c44e4eb51cb3dcb54798e05082c5
Author: Koichi Murase <myoga.mur...@gmail.com>
Date:   Mon Mar 14 17:55:48 2022 +0900

    tests: test the conflict of color9 vs COL_INVIS
---
 tests/colors_regression.sh | 11 +++++++++++
 tests/tests.results        |  1 +
 2 files changed, 12 insertions(+)

diff --git a/tests/colors_regression.sh b/tests/colors_regression.sh
new file mode 100755
index 0000000..2567d40
--- /dev/null
+++ b/tests/colors_regression.sh
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+# Regression test for color 9 confused with COL_INVIS
+# (cf https://github.com/borisfaure/terminology/issues/95)
+printf '\033[38;5;9mhello\033[0m\n'
+
+# By using the window manipulation sequence, we induce "termpty_resize
+# (termpty.c:1339)" where "termpty_line_length (termpty.c:949)" is used .
+# "termpty_line_length" uses "_termpty_cell_is_empty" that had a bug.
+printf '\033[8;25;132t'
+printf '\033[8;25;80t'
diff --git a/tests/tests.results b/tests/tests.results
index 5e13283..baafc36 100644
--- a/tests/tests.results
+++ b/tests/tests.results
@@ -31,6 +31,7 @@ dsr-os.sh 0c233ebe0c97c3650b507e927ec92abf
 dsr-pp.sh 35733eed0b451ad87357a22d189ac26f
 dsr-udk.sh f53a390493267764cdc7c488d51e55ec
 colors.sh 103d3e6b2e89424ff886576cfaeb5d55
+colors_regression.sh 5521278732a4c3fc299e3940f620d0c2
 sgr-leading-trailing-semicolon.sh 57d81e2a5e70188911bff0c166a5be56
 sgr-truecolors.sh b7b8981b7f44c1cba656e6aa3a1b928f
 hang-invalid-truecolors.sh 6d3f407a3fc877e7687a1ed4022c300d

-- 


Reply via email to