Really? afoken's second response is harsh to say the least.
I have 20 years background in IT and though I understand what was written in the first response,
it is in no way an answer to the question.
Where's the solution?
Where's the code?
Nowhere it seems.
Just some text that is bordering on an arrogant response I'm sorry to have to say.
And still somehow NateTut thanked afoken for the help in solving this issue
Maybe you should take a minute to reexamine what is written to discover the answer ... that some escape sequence outputs the title on STDIN