diff --git a/tests/colors_regression.sh b/tests/colors_regression.sh new file mode 100755 index 00000000..2567d409 --- /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 5e132834..baafc369 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