From 38d6967f682a1795d9eea5f97153816ca5d0a1cd Mon Sep 17 00:00:00 2001 From: Asif Bacchus Date: Fri, 15 Jan 2021 05:50:01 -0700 Subject: [PATCH] feature(HELPERSCRIPTS): add newline function, bold formatting preset --- helpers/update.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/helpers/update.sh b/helpers/update.sh index 66d1511..274256d 100644 --- a/helpers/update.sh +++ b/helpers/update.sh @@ -35,8 +35,13 @@ textblockParam() { printf "%s%s%s\n" "$info" "$1" "$norm" } +textNewline() { + printf "\n" +} + ### text formatting presets if command -v tput >/dev/null 2>&1; then + bold=$(tput bold) err=$(tput bold)$(tput setaf 1) info=$(tput bold)$(tput setaf 6) header=$(tput bold)$(tput setaf 5) @@ -45,6 +50,7 @@ if command -v tput >/dev/null 2>&1; then warn=$(tput bold)$(tput setaf 3) width=$(tput cols) else + bold='' err='' info='' header=''