diff --git a/test/run-syntax-checks.sh b/test/run-syntax-checks.sh index 9991a54e..18a65523 100644 --- a/test/run-syntax-checks.sh +++ b/test/run-syntax-checks.sh @@ -5,32 +5,11 @@ echo -e configuration_name="Configuration Name Not Set" -# Define colours FailColour='\033[38;2;255;128;128m' PassColour='\033[38;2;128;255;128m' TitleColour='\033[38;2;107;210;255m' HelpColour='\033[38;2;250;180;250m' NoColour='\033[0m' -CommandColour='\033[38;2;255;255;128m' - -# Save cursor position -tput sc - -# Clear screen -tput clear - -# Write fixed header on line 1 -tput cup 0 0 -echo $CommandColour "run-syntax-checks.sh" $1 $2 $3 $4 $5 $NoColour - -# Define scrolling region from line 2 to bottom -tput csr 2 $(($(tput lines) - 1)) - -# Restore cursor position -tput rc - -# Move cursor to start of scrollable area -tput cup 1 0 ParseGitBranch() { @@ -102,25 +81,6 @@ ChecksCompleted() echo "$NoColour" } -cleanup() -{ - # Reset scroll region to full screen - tput csr 0 $(($(tput lines) - 1)) - # Move cursor to a safe line (bottom of terminal) - tput cup $(($(tput lines) - 1)) 0 -} - -ctrl_c() -{ - # Reset scroll region to full screen - tput csr 0 $(($(tput lines) - 1)) - # Move cursor to a safe line (bottom of terminal) - tput cup $(($(tput lines) - 1)) 0 -} - -trap ctrl_c INT -trap cleanup EXIT - cd syntax_check || exit 1 echo "" > log.txt