Mac Terminal FAQ: How can I change the title on the Mac Terminal app from the Mac/Unix command line?
I've been working on a project where I have three Mac Terminal tabs open at one time, and I found it was much easier to work this way when I changed the title on each Terminal window. This helped me easily identify what I was doing in each Terminal window.
Changing the Mac Terminal title
The basic escape sequence you need to change the Terminal title from the command line is this: