.bashrc is for interactive non-login shells. login-shells don't read it unless .profile or .bash_profile tells them to (which the ~/.profile in Ubuntu does by default, I think).
Instead of using unreadable (and probably not portable) escape sequences, you might want to take a look at the program tput and the manual for terminfo to get the names and possible values of terminal capabilities to use with tput. For example:
Code:
tput colors # outputs the number of colours the terminal can use (8 on the console of my machine, numbered 0 to 7)
tput set_ab 0 # set background to colour 0
tput set_af 7 # set foreground to colour 7
tput initc 0 1000 0 0 # initialize colour 0 to a bright red (rgb, components from 0 to 1000)
Holger
Bookmarks