Get rid of "clear" to stop it purging scroll-back buffer

This commit is contained in:
Martin D Kealey 2022-09-25 17:43:43 +10:00
parent 41212db551
commit 79f5dadec0
4 changed files with 0 additions and 11 deletions

View File

@ -120,8 +120,6 @@ managed_file_installation() {
# information that helps with bug reports # information that helps with bug reports
clear
# displays script name and version # displays script name and version
printf 'Running %s version %s\n' "${0##*/}" "$SCRIPT_VERSION" printf 'Running %s version %s\n' "${0##*/}" "$SCRIPT_VERSION"

View File

@ -127,8 +127,6 @@ managed_file_installation() {
# information that helps with bug reports # information that helps with bug reports
clear
# displays script name and version # displays script name and version
printf 'Running %s version %s\n' "${0##*/}" "$SCRIPT_VERSION" printf 'Running %s version %s\n' "${0##*/}" "$SCRIPT_VERSION"

View File

@ -19,7 +19,6 @@ then
exit 1 exit 1
fi fi
clear
printf 'Running %s version %s\n' "${0##*/}" "$SCRIPT_VERSION" printf 'Running %s version %s\n' "${0##*/}" "$SCRIPT_VERSION"
# support for NoPrompt allows non-interactive use of this script # support for NoPrompt allows non-interactive use of this script

View File

@ -9,8 +9,6 @@ SCRIPT_VERSION=20220923
# There is no filename globbing in this script, so disable it to stop accidents # There is no filename globbing in this script, so disable it to stop accidents
set -f set -f
clear
# Check that sudo was used to start the script # Check that sudo was used to start the script
if (( EUID != 0 )) if (( EUID != 0 ))
then then
@ -59,7 +57,6 @@ get_if_info() {
print_if_info() { print_if_info() {
local iface=$1 m n local iface=$1 m n
clear
printf '\n --------------------------------\n' printf '\n --------------------------------\n'
printf ' %-20s %s\n' "${0##*/}" "$SCRIPT_VERSION" printf ' %-20s %s\n' "${0##*/}" "$SCRIPT_VERSION"
printf ' --------------------------------\n' printf ' --------------------------------\n'
@ -84,7 +81,6 @@ str_join() { local IFS="$2" ; printf -v "$1" %s "${*:3}" ; }
# Set $iface0 down # Set $iface0 down
ip link set dev "$iface0" down || { ip link set dev "$iface0" down || {
clear
printf '\n ERROR: Please provide an existing interface as parameter!\n' printf '\n ERROR: Please provide an existing interface as parameter!\n'
printf ' Usage: $ sudo %s [interface:wlan0]\n' "$0" printf ' Usage: $ sudo %s [interface:wlan0]\n' "$0"
printf ' Tip: $ iw dev\n\n' printf ' Tip: $ iw dev\n\n'
@ -128,7 +124,6 @@ then
kill -STOP "${pids[@]}" kill -STOP "${pids[@]}"
clear
printf '\n The following processes have been stopped:\n\n' printf '\n The following processes have been stopped:\n\n'
# ps -p takes a comma-separated list # ps -p takes a comma-separated list
@ -142,7 +137,6 @@ then
printf ' to a normal state at the end of this script.\n\n' printf ' to a normal state at the end of this script.\n\n'
else else
clear
printf '\n There are no processes that need stopping.\n\n' printf '\n There are no processes that need stopping.\n\n'
fi fi