Search code examples
unixterminalsolariscommand-prompttclsh

Set the terminal tab title as prompt name in unix


Lets say, the prompt is as below

run_scripts >

How to set that terminal tab title same as prompt i.e Terminal tab tile also should be
run_scripts>

So that terminal title should dynamically update when the prompt changes.


Solution

  • Many terminals emulators are able to understand the special escaping : "\033]0;foo\007".