When I do tput sgr0 it changes my terminal font and colour to white (should be black) and looks blocky.
Please see screenshot:
How do I stop this?
To be more concise, any echo after tput sgr 0 seems to output to bold white, my terminal text colour is black.
Update:
My ~.bashrc:
export LC_ALL="en_GB.UTF-8"
export BASH_SILENCE_DEPRECATION_WARNING=1
branch() {
git branch 2> /dev/null | \
grep \* | \
awk '{print$2}' | \
sed '
s#^#(#g;
s#$#)#g
'
}
colo() { tput setaf $1; }
PS1='`tput bold``colo 5`\W: `tput sgr0``colo 0``branch``colo 0` \n λ '

sgr0but your example code in the screenshot usessgr 0. Different!