Merge pull request #1947 from drwetter/noitalics4screen_3.0

Disable ANSI codes for italic when TERM == screen
This commit is contained in:
Dirk Wetter 2021-07-31 15:26:26 +02:00 committed by GitHub
commit 0d6ca5c1b8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -597,7 +597,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