From af6f232790a0f995464e5642c52dc71ba1016690 Mon Sep 17 00:00:00 2001 From: Dirk Wetter Date: Wed, 3 Jul 2019 11:47:54 +0200 Subject: [PATCH] Fix terminal codes / tput As noted in #1288 with some terminal settings under Linux there appeared some ~garbage on the screen. This fixes that by partly reverting 695d02157a2c452598fedbc24ae69809a067592f . At least now and under an older OpenBSD like 6.2 this doesn't seem to be necessary. --- testssl.sh | 1 - 1 file changed, 1 deletion(-) diff --git a/testssl.sh b/testssl.sh index a3b9cc5..26d51df 100755 --- a/testssl.sh +++ b/testssl.sh @@ -666,7 +666,6 @@ set_color_functions() { type -p tput &>/dev/null || return 0 # Hey wait, do we actually have tput / ncurses ? tput cols &>/dev/null || return 0 # tput under BSDs and GNUs doesn't work either (TERM undefined?) tput sgr0 &>/dev/null || ncurses_tput=false - tput sgr 0 1 &>/dev/null || ncurses_tput=false # OpenBSD succeed the previous one but fails here if [[ "$COLOR" -ge 2 ]]; then if $ncurses_tput; then red=$(tput setaf 1)