Quote:
Originally Posted by 1337_penguin
|
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:
\e]2;root@\H /etc/X11/fvwm2\a\e[32;1m>\e[0m
and for:
PS1="\[\e[32;1m\]\u@\H > \[\e[0m\]"
I got:
\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.