I have configured gnome-terminal
in .bashrc
to have custom colours:
PS1='${debian_chroot:+($debian_chroot)}\[\033[00;37m\][\[\033[00;32m\]\t\[\033[00;37m\]] \[\033[01;34m\]\u\[\033[00;37m\]@\[\033[01;34m\]\h\[\033[00;37m\]:\[\033[01;34m\]\w\[\033[01;32m\]$ '
And this means that when executing something like this:
The output looks like this even though the first line should be white, and was white until I made the command that is typed in also green:
So how can I make the output text colour not be affected by the fact that I have set the command colour to be green? I am running Ubuntu GNOME 15.04 with GNOME 3.16.
Information Update:
I have noticed that when running sudo rkhunter --nocolor --update
the output is all green.
sudo rkhunter --nocolor --update
and see if everything is in green.PS1
's color escape codes open so the command entry is formatted. Since rkhunter doesn't apply color formatting until that third line in your output, there's nothing to override the color formatting to set it back to white. There's no easy way to fix that, I think. (See chat)