Disable ANSI codes for italic when TERM == screen

... otherwise it is being printed in reverse, see #1928.
This commit is contained in:
Dirk 2021-07-31 13:17:55 +02:00
parent 46862ecc84
commit 525a40a653

View File

@ -634,7 +634,9 @@ pr_bold() { tm_bold "$1"; [[ "$COLOR" -ne 0 ]] && html_out "<span style=\"
prln_bold() { pr_bold "$1" ; outln; }
NO_ITALICS=false
if [[ $SYSTEM == OpenBSD ]]; then
if [[ $TERM == screen ]]; then
NO_ITALICS=true
elif [[ $SYSTEM == OpenBSD ]]; then
NO_ITALICS=true
elif [[ $SYSTEM == FreeBSD ]]; then
if [[ ${SYSTEMREV%\.*} -le 9 ]]; then