 <p>osascript -e "tell application \"Terminal\" to set background color of window 1 to {0,45000,0,0}"</p> <p><a href="http://stackoverflow.com/questions/157959/how-do-i-make-the-apple-terminal-window-auto-change-colour-scheme-when-i-ssh-to-a">(Can't take the credit)</a> </p>