From 265937b6751181beb6a9d1d602e6272a8cabace1 Mon Sep 17 00:00:00 2001 From: Daniel Napora Date: Wed, 1 Jan 2020 16:22:36 +0100 Subject: [PATCH] Reset terminal font color to default Terminal font color is set to red after using wpx. Fix to reset termial font color to default. --- wpx | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/wpx b/wpx index c76c76e..e2292f2 100644 --- a/wpx +++ b/wpx @@ -247,14 +247,14 @@ function getscriptversions { # ---------------- # # Colour Functions # # ---------------- # -black() { printf "$(tput setaf 0)$*$(tput setaf 9)"; } -red() { printf "$(tput setaf 1)$*$(tput setaf 9)"; } -green() { printf "$(tput setaf 2)$*$(tput setaf 9)"; } -yellow() { printf "$(tput setaf 3)$*$(tput setaf 9)"; } -blue() { printf "$(tput setaf 4)$*$(tput setaf 9)"; } -magenta() { printf "$(tput setaf 5)$*$(tput setaf 9)"; } -cyan() { printf "$(tput setaf 6)$*$(tput setaf 9)"; } -white() { printf "$(tput setaf 7)$*$(tput setaf 9)"; } +black() { printf "$(tput setaf 0)$*$(tput sgr0)"; } +red() { printf "$(tput setaf 1)$*$(tput sgr0)"; } +green() { printf "$(tput setaf 2)$*$(tput sgr0)"; } +yellow() { printf "$(tput setaf 3)$*$(tput sgr0)"; } +blue() { printf "$(tput setaf 4)$*$(tput sgr0)"; } +magenta() { printf "$(tput setaf 5)$*$(tput sgr0)"; } +cyan() { printf "$(tput setaf 6)$*$(tput sgr0)"; } +white() { printf "$(tput setaf 7)$*$(tput sgr0)"; } # ------------------- # # Check Action Result #