{"id":73,"date":"1997-09-09T01:36:29","date_gmt":"1997-09-09T09:36:29","guid":{"rendered":"http:\/\/www.birdhouse.org\/betips\/?p=73"},"modified":"1997-09-09T01:36:29","modified_gmt":"1997-09-09T09:36:29","slug":"title-your-terminal","status":"publish","type":"post","link":"https:\/\/www.betips.net\/?p=73","title":{"rendered":"Title your Terminal"},"content":{"rendered":"<p>If you launch the Terminal with the -t flag, you can assign a custom name to its title bar. For instance, type<br \/>\n<code>Terminal -t \"HappyTerm\"<\/code><br \/>\n and you&#8217;ll get a new Terminal window called Happy Term, rather than the default name &#8222;Terminal 2.&#8220;<br \/>\nYou can also change the title of the currently running terminal with the following sequence:<br \/>\n<code><br \/>\n$ \/bin\/echo '33]2;My Term07'<br \/>\n<\/code><br \/>\nBecause this is a somewhat hairy sequence, you probably won&#8217;t want to type it in with any regularity. In that case, make the above into a little shell script. Save the brief script below in \/boot\/home\/config\/bin as a file called &#8222;term&#8220;<br \/>\n<code><br \/>\necho -e \"33]2;$107\"<br \/>\n<\/code><br \/>\nYou&#8217;ll then be able to type: <code>term \"My Term\"<\/code> at any prompt to change  the title of the currently running terminal.<\/p>\n<hr \/>\n<p>Peter Folk (pfolk@gargtech.com) adds:<br \/>\nThe command from this tip wasn&#8217;t correctly quoted, so it didn&#8217;t make it through the HTML system. The correct command is below:<br \/>\n  <code>echo -en '\\\\033]2;TextInTitle\\\\007'<\/code><\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you launch the Terminal with the -t flag, you can assign a custom name to its title bar. For instance, type Terminal -t &#8222;HappyTerm&#8220; and you&#8217;ll get a new Terminal window called Happy Term, rather than the default name &#8222;Terminal 2.&#8220; You can also change the title of the currently running terminal with the [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[11],"class_list":["post-73","post","type-post","status-publish","format-standard","hentry","tag-terminal"],"_links":{"self":[{"href":"https:\/\/www.betips.net\/index.php?rest_route=\/wp\/v2\/posts\/73","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.betips.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.betips.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.betips.net\/index.php?rest_route=\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.betips.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=73"}],"version-history":[{"count":0,"href":"https:\/\/www.betips.net\/index.php?rest_route=\/wp\/v2\/posts\/73\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.betips.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=73"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.betips.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=73"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.betips.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=73"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}