Putting a xterm command into .bashrc equals to start a new xterm each time a xterm is open, resulting in an infinite loop. To change the colors of the xterm, add the following lines to ~/.Xdefaults (or create it if missing):
Then to make the changes active, do
xrdb -load ~/.Xdefaults
start a new xterm and the trick is done!