Reset all cursor attributes after coloring

This commit is contained in:
drduh 2015-07-03 12:37:16 -04:00
parent be69cf7099
commit e3a3c78464
1 changed files with 2 additions and 2 deletions

4
pwd.sh
View File

@ -13,7 +13,7 @@ safe=${PWDSH_SAFE:=pwd.sh.safe}
fail () {
# Print an error message and exit.
tput setaf 1 ; echo "Error: ${1}"
tput setaf 1 ; echo "Error: ${1}" ; tput sgr0
exit 1
}
@ -163,5 +163,5 @@ else
read_pass
fi
tput setaf 2 ; echo "Done"
tput setaf 2 ; echo "Done" ; tput sgr0