I want to underline my user & hostname in the PS1 variable, but I cant seem to do it.
I know that my Xterm can underline text normally, because when I pass Xterm the '+nul' option, then do this:
tput smul; echo underlined text; tput sgr0
it underlines. I just cant seem to get it to work for my PS1 variable, although its quite possible Im doing it incorrectly. has anyone managed to do this, is it possible?
here is my PS1 variable:
PS1='u @\h[\033[0m\]\[\e[m\]\[\033[1;33m\]\w \[\033[0m\]# '