<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Changing OS X Terminal colours when ssh&#039;ing into a server</title>
	<atom:link href="http://akrabat.com/php/osx-terminal-colours/feed/" rel="self" type="application/rss+xml" />
	<link>http://akrabat.com/php/osx-terminal-colours/</link>
	<description>Developing PHP software in the Real World, by Rob Allen</description>
	<lastBuildDate>Thu, 29 Jul 2010 17:50:10 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>By: Rob...</title>
		<link>http://akrabat.com/php/osx-terminal-colours/#comment-28653</link>
		<dc:creator>Rob...</dc:creator>
		<pubDate>Fri, 02 Oct 2009 13:46:32 +0000</pubDate>
		<guid isPermaLink="false">http://akrabat.com/?p=779#comment-28653</guid>
		<description>Cliff,

Can&#039;t see why that wouldn&#039;t work, except that I don&#039;t want to use xterms; I want to use Terminal.

Rob...</description>
		<content:encoded><![CDATA[<p>Cliff,</p>
<p>Can't see why that wouldn't work, except that I don't want to use xterms; I want to use Terminal.</p>
<p>Rob...</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Cliff</title>
		<link>http://akrabat.com/php/osx-terminal-colours/#comment-28652</link>
		<dc:creator>Cliff</dc:creator>
		<pubDate>Fri, 02 Oct 2009 13:36:17 +0000</pubDate>
		<guid isPermaLink="false">http://akrabat.com/?p=779#comment-28652</guid>
		<description>This seems a bit OTT.

In my .profile (under Linux) I have a function getcolours with a case statement that sets up bg, fg and ms for each machine I want to be able to ssh into.

Then, on my home terminal in .profile I have:

for host in $hosts
do
    getcolours
    eval &quot;function $host {
      ssh -A -Y -T -f $host /usr/bin/xterm -sb -sl 1000 -rightbar -ms $ms -fg $fg -bg $bg -ls -u8
}&quot;
done

Now I can simply type xyz to get an xterm back from a host called xyz.may.be, with the right background and foreground colours.

I can&#039;t see why this wouldn&#039;t  work on a mac.</description>
		<content:encoded><![CDATA[<p>This seems a bit OTT.</p>
<p>In my .profile (under Linux) I have a function getcolours with a case statement that sets up bg, fg and ms for each machine I want to be able to ssh into.</p>
<p>Then, on my home terminal in .profile I have:</p>
<p>for host in $hosts<br />
do<br />
    getcolours<br />
    eval "function $host {<br />
      ssh -A -Y -T -f $host /usr/bin/xterm -sb -sl 1000 -rightbar -ms $ms -fg $fg -bg $bg -ls -u8<br />
}"<br />
done</p>
<p>Now I can simply type xyz to get an xterm back from a host called xyz.may.be, with the right background and foreground colours.</p>
<p>I can't see why this wouldn't  work on a mac.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
