Skip to content
Permalink
Browse files

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 695d021 .
At least now and under an older OpenBSD like 6.2 this doesn't seem
to be necessary.
  • Loading branch information...
drwetter committed Jul 3, 2019
1 parent 3d5982e commit af6f232790a0f995464e5642c52dc71ba1016690
Showing with 0 additions and 1 deletion.
  1. +0 −1 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)

0 comments on commit af6f232

Please sign in to comment.
You can’t perform that action at this time.