I get different behaviors in terminal with the same prompt definition in Snow Leopard and Lion.
On my Snow Leopard system, I define my terminal prompt in .profile as follows:
export PS1='\[\e[32;1m\]\w\$\[\e[0m\] '
This creates a green-on-black prompt, with the output from normal commands being white-on-black by default. (For example, if I type man I get the output What manual page do you want? in white-on-black.)
On my Lion system, with the same .profile, I get the same green-on-black prompt but text color no longer switched back to white-on-black. (If I type man I get the output What manual page do you want? in the same green-on-black as the prompt.)
Why does Lion's terminal behave differently -- and how do I get it to change text back to white-on-black?