mirror of
				https://github.com/drwetter/testssl.sh.git
				synced 2025-11-03 23:35:26 +01:00 
			
		
		
		
	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 695d02157a .
At least now and under an older OpenBSD like 6.2 this doesn't seem
to be necessary.
			
			
This commit is contained in:
		@@ -666,7 +666,6 @@ set_color_functions() {
 | 
				
			|||||||
     type -p tput &>/dev/null || return 0      # Hey wait, do we actually have tput / ncurses ?
 | 
					     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 cols &>/dev/null || return 0         # tput under BSDs and GNUs doesn't work either (TERM undefined?)
 | 
				
			||||||
     tput sgr0 &>/dev/null || ncurses_tput=false
 | 
					     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 [[ "$COLOR" -ge 2 ]]; then
 | 
				
			||||||
          if $ncurses_tput; then
 | 
					          if $ncurses_tput; then
 | 
				
			||||||
               red=$(tput setaf 1)
 | 
					               red=$(tput setaf 1)
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user