That function is for internal use only. Hence this change.
TPUT="${TPUT:-"/usr/bin/tput"}"
TPUT="${TPUT:-"/usr/bin/tput"}"
[ -x "$TPUT" ] && "$TPUT" hpa 60 >/dev/null 2>&1 \
&& return 0 \
|| return 1
[ -x "$TPUT" ] && "$TPUT" hpa 60 >/dev/null 2>&1 \
&& return 0 \
|| return 1
RED="$("$TPUT" setaf 1)"
#NORMAL="$("$TPUT" op)"
printf " ${RED}*${NORMAL} $@\n"
RED="$("$TPUT" setaf 1)"
#NORMAL="$("$TPUT" op)"
printf " ${RED}*${NORMAL} $@\n"
YELLOW="$("$TPUT" setaf 3)"
#NORMAL="$("$TPUT" op")"
# printf " *${NORMAL} $@\n"
YELLOW="$("$TPUT" setaf 3)"
#NORMAL="$("$TPUT" op")"
# printf " *${NORMAL} $@\n"
}
log_warning_msg_nn () {
}
log_warning_msg_nn () {
YELLOW="$("$TPUT" setaf 3)"
printf " ${BLUE}*${NORMAL} $@"
else
YELLOW="$("$TPUT" setaf 3)"
printf " ${BLUE}*${NORMAL} $@"
else
# Only do the fancy stuff if we have an appropriate terminal
# and if /usr is already mounted
# Only do the fancy stuff if we have an appropriate terminal
# and if /usr is already mounted
COLS="$("$TPUT" cols)"
if [ -n "$COLS" ]; then
COL=$(( "$COLS" - 7 ))
COLS="$("$TPUT" cols)"
if [ -n "$COLS" ]; then
COL=$(( "$COLS" - 7 ))