{"id":608,"date":"1997-09-09T01:36:29","date_gmt":"1997-09-09T09:36:29","guid":{"rendered":"http:\/\/www.birdhouse.org\/betips\/?p=608"},"modified":"1997-09-09T01:36:29","modified_gmt":"1997-09-09T09:36:29","slug":"terminal-configuration-options","status":"publish","type":"post","link":"https:\/\/www.betips.net\/?p=608","title":{"rendered":"Terminal configuration options"},"content":{"rendered":"<p>The &#8222;Terminal&#8220; application has many built-in command line options. Help unfortunately, is not one of them. A few of the options are the same as those used by &#8222;xterm&#8220;, but these options are, for the most part, undocumented.<\/p>\n<table border=1>\n<tr>\n<td>-fg colour\n\t<\/td>\n<td>Foreground\n\t<\/td>\n<\/tr>\n<tr>\n<td>-bg colour\n\t<\/td>\n<td>Background\n\t<\/td>\n<\/tr>\n<tr>\n<td>-curfg colour\n\t<\/td>\n<td>Cursor foreground\n\t<\/td>\n<\/tr>\n<tr>\n<td>-curbg colour\n\t<\/td>\n<td>Cursor background\n\t<\/td>\n<\/tr>\n<tr>\n<td>-selfg colour\n\t<\/td>\n<td>Selected text foreground\n\t<\/td>\n<\/tr>\n<tr>\n<td>-selbg colour\n\t<\/td>\n<td>Selected text background\n\t<\/td>\n<\/tr>\n<tr>\n<td>-t title\n\t<\/td>\n<td>Title to appear in window tab\n\t<\/td>\n<\/tr>\n<tr>\n<td>-geom (width)x(height)\n\t<\/td>\n<td>Size of the window\n\t<\/td>\n<\/tr>\n<tr>\n<td>-p settings-file\n\t<\/td>\n<td>Personalised settings you may have previously saved\n\t<\/td>\n<\/tr>\n<tr>\n<td>command\n\t<\/td>\n<td>A command to execute after Terminal starts up\n\t<\/td>\n<\/tr>\n<\/table>\n<p>For example, say I wanted to launch &#8222;Terminal&#8220; with a blue background, white foreground, a title of &#8222;hostxyz&#8220; and automatically telnet to hostxyz, I would use the following syntax: &#8211;<\/p>\n<pre>Terminal -bg blue -fg white -t \"hostxyz\" \/bin\/telnet hostxyz<\/pre>\n<p>Have a look at the contents of <code>\/etc\/rgb.txt<\/code> for available colours. Once you&#8217;re happy with the colour combinations, you can save these from the &#8222;Settings\/Save as Settings File&#8220; menu option. You will then be able to launch &#8222;Terminal&#8220; the next time with the -p option specifying this file.<\/p>\n<p>You could of course place the command line in a shell script and create a (symbolic) link to the script on the Desktop. You could create separate scripts to automatically launch with different colours etc for different hosts you may need to log into.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The &#8222;Terminal&#8220; application has many built-in command line options. Help unfortunately, is not one of them. A few of the options are the same as those used by &#8222;xterm&#8220;, but these options are, for the most part, undocumented. -fg colour Foreground -bg colour Background -curfg colour Cursor foreground -curbg colour Cursor background -selfg colour Selected [&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-608","post","type-post","status-publish","format-standard","hentry","tag-terminal"],"_links":{"self":[{"href":"https:\/\/www.betips.net\/index.php?rest_route=\/wp\/v2\/posts\/608","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=608"}],"version-history":[{"count":0,"href":"https:\/\/www.betips.net\/index.php?rest_route=\/wp\/v2\/posts\/608\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.betips.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=608"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.betips.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=608"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.betips.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=608"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}