Skip to content

Commit 1330375

Browse files
committed
Disable ANSI codes for italic when TERM == screen
... otherwise it is being printed in reverse, see #1928. Same as #1946 but for the 3.0 branch.
1 parent 5d49458 commit 1330375

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

testssl.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -597,7 +597,9 @@ pr_bold() { tm_bold "$1"; [[ "$COLOR" -ne 0 ]] && html_out "<span style=\"
597597
prln_bold() { pr_bold "$1" ; outln; }
598598

599599
NO_ITALICS=false
600-
if [[ $SYSTEM == OpenBSD ]]; then
600+
if [[ $TERM == screen ]]; then
601+
NO_ITALICS=true
602+
elif [[ $SYSTEM == OpenBSD ]]; then
601603
NO_ITALICS=true
602604
elif [[ $SYSTEM == FreeBSD ]]; then
603605
if [[ ${SYSTEMREV%\.*} -le 9 ]]; then

0 commit comments

Comments
 (0)