|
"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.
|