Path: news.mathworks.com!not-for-mail
From: "Luke " <luke.bagnall@airbus.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Command Window Font Color
Date: Fri, 2 Nov 2007 11:13:37 +0000 (UTC)
Organization: Airbus UK
Lines: 36
Message-ID: <fgf0p1$ck7$1@fred.mathworks.com>
References: <fgescs$hg8$1@fred.mathworks.com> <fgeuu4$ig6$1@fred.mathworks.com>
Reply-To: "Luke " <luke.bagnall@airbus.com>
NNTP-Posting-Host: webapp-05-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1194002017 12935 172.30.248.35 (2 Nov 2007 11:13:37 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Fri, 2 Nov 2007 11:13:37 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 475149
Xref: news.mathworks.com comp.soft-sys.matlab:435791



"Yair Altman" <altmanyDEL@gmailDEL.comDEL> wrote in message 
<fgeuu4$ig6$1@fred.mathworks.com>...
> "Luke " <luke.bagnall@airbus.com> wrote in message
> <fgescs$hg8$1@fred.mathworks.com>...
> > Is it possible to output to the command window, in a 
> > specfifc color, say by using disp, or fprintf.
> > 
> > For example:
> > I want to output font like PASS (in green), or FAIL (in 
> > red).
> 
> You can't control the color programatically, except the
> following:
> 
> fprintf(2,'whatever') will print in red just like anything
> else spilled into STDERR (FID=2). You can also use '<a
> href=...>...</a>' to display something in blue underline. 
Of
> course, if you change colors in the Preferences or
> *.ColorPrefs, you'll get other colors, but this affects 
the
> entire Command Window at once, not just text displayed 
from
> now on.
> 
> There's probably an undocumented hack somewhere, but I
> haven't found it yet (and my question to Kristin on this
> went unanswered...)
> 
> Yair Altman
> http://ymasoftware.com
> 

I wondered if you could change the preferences, but that's 
no good if it changes everything. I'm sure there must be a 
a crude way of forcing it.