Adding xterm behaviour to setting the title.

Thanks Airwave!
Fixing title setting with the title argument.