Problem: How to reset the terminal window title?

Situation: When using ssh, the terminal window title changes to user@hostname-of-box. But after quitting the ssh session, the title still remains the same.

Solution: Use this escape sequence:

echo -ne "\033]0;\007"

Tags:

Updated: