tests: test the conflict of color9 vs COL_INVIS

This commit is contained in:
Koichi Murase 2022-03-14 17:55:48 +09:00
parent 4d7dad2a79
commit 7e4ab152a5
2 changed files with 12 additions and 0 deletions

11
tests/colors_regression.sh Executable file
View File

@ -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'

View File

@ -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