I tried what they said, but it didn't work:
PS1="\[\e]2;\u@\H \w\a\e[32;1m\]>\[\e[0m\] "
my PS1 became:
PS1="\[\e[32;1m\]\u@\H > \[\e[0m\]"
\e[32;1mroot@\H > \e[0
This, however, does work:
PS1="[\[\033[31;1m\u\[\033[0m@\[\033[34;1m\h\[\033[0m \[\033[34m\w\[\033[0m]>> "
I'm reffering to a terminal that is started from inittab, like this:
1:12345:respawn:/sbin/mingetty tty1. I don't have a X interface at all.
Is there a script that will take background and foreground colors as input and genereate the sequence?
If I change the PS1 background, it doesn't change the tty background, which is what I wanted in the first place.