<?xml version="1.0" encoding="utf-8"?> <rss
version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:wfw="http://wellformedweb.org/CommentAPI/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
> <channel><title>james.murty.org &#187; terminal</title> <atom:link href="http://james.murty.org/archives/tag/terminal/feed/" rel="self" type="application/rss+xml" /><link>http://james.murty.org</link> <description>ramblings from the sleep deprived mind of James</description> <lastBuildDate>Wed, 23 Nov 2011 01:14:15 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.1</generator> <item><title>colouring in the Terminal</title><link>http://james.murty.org/archives/2005/01/08/colour-terminal/</link> <comments>http://james.murty.org/archives/2005/01/08/colour-terminal/#comments</comments> <pubDate>Sat, 08 Jan 2005 07:40:30 +0000</pubDate> <dc:creator>james</dc:creator> <category><![CDATA[nerdy]]></category> <category><![CDATA[color]]></category> <category><![CDATA[mac]]></category> <category><![CDATA[mac tips]]></category> <category><![CDATA[macosx]]></category> <category><![CDATA[shell]]></category> <category><![CDATA[terminal]]></category> <guid
isPermaLink="false">http://musashi.murty.org/archives/2005/01/08/colour-terminal/</guid> <description><![CDATA[a few ideas for using colour within Apple's Terminal application]]></description> <content:encoded><![CDATA[<p>Scott P recently sent me an email which mentioned his discovery that you can change the colour of the text and backgrounds (as well as transparency) of each Apple Terminal window.</p><p>For those of you who haven&#8217;t found these settings, select <em>Window Settings&#8230;</em> under the <em>Terminal</em> menu and then choose the <em>Color</em> menu option. Apple&#8217;s default is black text on a white background, rather like the default for most windows on the Mac since way back when. Personally, I&#8217;ve been using orange on black and green on black for nostalgic reasons since I first got my hands on OS X.</p><p>You can also modify the font and the look of the cursor/prompt from within the <em>Display</em> menu option. Again, for nostalgic reasons, I like a blinking block. But, hey, the first computer I ever used on a regular basis was an Apple ][ with a green screen monitor and the first computer I ever owned had an amber monitor. Happy days <img
src='http://james.murty.org/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /></p><p>Anywho, my conversation with Scott reminded me of a couple of things I&#8217;ve found in addition to playing around with the above that may benefit/interest some of you. The first is the use of the &#8220;<code>-G</code>&#8221; argument when using the &#8220;<code>ls</code>&#8221; command line directory listing command. This argument will colourise the output making it visually obvious which items are files, folders, executable, hidden, etc. If you like this, make either a new command like &#8220;<code>lc</code>&#8221; using an alias, or simply replace the existing <code>ls</code> command with an alias to <code>ls -G</code> and add to your <code>.bash_profile</code> or <code>.profile</code> file. Something like <code>alias ls="ls -G"</code> will do the trick.</p><p>Another useful thing to have is Mike Solomon&#8217;s <a
href="http://culater.net/software/TerminalColors/TerminalColors.php" target="_blank">TerminalColors</a>. It adds a new pane to the Window Settings&#8230; menu option mentioned above that allows you to tweak the colours used by the terminal for displaying text. Some colours (like blue) are almost impossible to read clearly over black.</p><p>My final thought on colour which may be interesting to some of you is a thing I saw on <a
href="http://www.macosxhints.com" target="_blank">Mac OS X hints</a> a while back. An anonymous poster <a
href="http://www.macosxhints.com/article.php?story=20040823015557368" target="_blank">submitted a script</a> for <code>tcsh</code> that randomly changes the background and text colour of each new Terminal window as they are created. An interesting conversation follows with many of other ideas about how this can be done more efficiently. I haven&#8217;t used any of that stuff myself &#8211; but it occurs to me that it might be useful to have a script that automatically changes the tint of a Terminal window when something is being executed as root or privileges have been elevated using <code>sudo</code>.</p> ]]></content:encoded> <wfw:commentRss>http://james.murty.org/archives/2005/01/08/colour-terminal/feed/</wfw:commentRss> <slash:comments>1</slash:comments> </item> </channel> </rss>
