<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/158678</link>
    <title>MATLAB Central Newsreader - Command Window Font Color</title>
    <description>Feed for thread: Command Window Font Color</description>
    <language>en-us</language>
    <copyright>&amp;copy;1994-2012 by MathWorks, Inc.</copyright>
    <webmaster>webmaster@mathworks.com</webmaster>
    <generator>MATLAB Central Newsreader</generator>
    <docs>http://blogs.law.harvard.edu/tech/rss</docs>
    <ttl>60</ttl>
    <image>
      <title>MathWorks</title>
      <url>http://www.mathworks.com/images/membrane_icon.gif</url>
    </image>
    <item>
      <pubDate>Fri, 02 Nov 2007 09:58:52 -0400</pubDate>
      <title>Command Window Font Color</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/158678#399557</link>
      <author>Luke </author>
      <description>Is it possible to output to the command window, in a &lt;br&gt;
specfifc color, say by using disp, or fprintf.&lt;br&gt;
&lt;br&gt;
For example:&lt;br&gt;
I want to output font like PASS (in green), or FAIL (in &lt;br&gt;
red).</description>
    </item>
    <item>
      <pubDate>Fri, 02 Nov 2007 10:42:12 -0400</pubDate>
      <title>Re: Command Window Font Color</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/158678#399561</link>
      <author>Yair Altman</author>
      <description>&quot;Luke &quot; &amp;lt;luke.bagnall@airbus.com&amp;gt; wrote in message&lt;br&gt;
&amp;lt;fgescs$hg8$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; Is it possible to output to the command window, in a &lt;br&gt;
&amp;gt; specfifc color, say by using disp, or fprintf.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; For example:&lt;br&gt;
&amp;gt; I want to output font like PASS (in green), or FAIL (in &lt;br&gt;
&amp;gt; red).&lt;br&gt;
&lt;br&gt;
You can't control the color programatically, except the&lt;br&gt;
following:&lt;br&gt;
&lt;br&gt;
fprintf(2,'whatever') will print in red just like anything&lt;br&gt;
else spilled into STDERR (FID=2). You can also use '&amp;lt;a&lt;br&gt;
href=...&amp;gt;...&amp;lt;/a&amp;gt;' to display something in blue underline. Of&lt;br&gt;
course, if you change colors in the Preferences or&lt;br&gt;
*.ColorPrefs, you'll get other colors, but this affects the&lt;br&gt;
entire Command Window at once, not just text displayed from&lt;br&gt;
now on.&lt;br&gt;
&lt;br&gt;
There's probably an undocumented hack somewhere, but I&lt;br&gt;
haven't found it yet (and my question to Kristin on this&lt;br&gt;
went unanswered...)&lt;br&gt;
&lt;br&gt;
Yair Altman&lt;br&gt;
&lt;a href=&quot;http://ymasoftware.com&quot;&gt;http://ymasoftware.com&lt;/a&gt;</description>
    </item>
    <item>
      <pubDate>Fri, 02 Nov 2007 11:13:37 -0400</pubDate>
      <title>Re: Command Window Font Color</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/158678#399564</link>
      <author>Luke </author>
      <description>&quot;Yair Altman&quot; &amp;lt;altmanyDEL@gmailDEL.comDEL&amp;gt; wrote in message &lt;br&gt;
&amp;lt;fgeuu4$ig6$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; &quot;Luke &quot; &amp;lt;luke.bagnall@airbus.com&amp;gt; wrote in message&lt;br&gt;
&amp;gt; &amp;lt;fgescs$hg8$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; &amp;gt; Is it possible to output to the command window, in a &lt;br&gt;
&amp;gt; &amp;gt; specfifc color, say by using disp, or fprintf.&lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; For example:&lt;br&gt;
&amp;gt; &amp;gt; I want to output font like PASS (in green), or FAIL (in &lt;br&gt;
&amp;gt; &amp;gt; red).&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; You can't control the color programatically, except the&lt;br&gt;
&amp;gt; following:&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; fprintf(2,'whatever') will print in red just like anything&lt;br&gt;
&amp;gt; else spilled into STDERR (FID=2). You can also use '&amp;lt;a&lt;br&gt;
&amp;gt; href=...&amp;gt;...&amp;lt;/a&amp;gt;' to display something in blue underline. &lt;br&gt;
Of&lt;br&gt;
&amp;gt; course, if you change colors in the Preferences or&lt;br&gt;
&amp;gt; *.ColorPrefs, you'll get other colors, but this affects &lt;br&gt;
the&lt;br&gt;
&amp;gt; entire Command Window at once, not just text displayed &lt;br&gt;
from&lt;br&gt;
&amp;gt; now on.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; There's probably an undocumented hack somewhere, but I&lt;br&gt;
&amp;gt; haven't found it yet (and my question to Kristin on this&lt;br&gt;
&amp;gt; went unanswered...)&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Yair Altman&lt;br&gt;
&amp;gt; &lt;a href=&quot;http://ymasoftware.com&quot;&gt;http://ymasoftware.com&lt;/a&gt;&lt;br&gt;
&amp;gt; &lt;br&gt;
&lt;br&gt;
I wondered if you could change the preferences, but that's &lt;br&gt;
no good if it changes everything. I'm sure there must be a &lt;br&gt;
a crude way of forcing it.</description>
    </item>
    <item>
      <pubDate>Wed, 13 May 2009 14:03:01 -0400</pubDate>
      <title>Re: Command Window Font Color</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/158678#649523</link>
      <author>Yair Altman</author>
      <description>After a very long investigation, I am proud to announce that I have solved the problem of displaying text in any color (with possible underline) in the Command Window. It works on all Matlab 7 versions. &lt;br&gt;
&lt;br&gt;
Interested readers can find details here:&lt;br&gt;
&lt;a href=&quot;http://undocumentedmatlab.com/blog/cprintf-display-formatted-color-text-in-command-window/&quot;&gt;http://undocumentedmatlab.com/blog/cprintf-display-formatted-color-text-in-command-window/&lt;/a&gt;&lt;br&gt;
&lt;br&gt;
Yair Altman&lt;br&gt;
&lt;a href=&quot;http://UndocumentedMatlab.com&quot;&gt;http://UndocumentedMatlab.com&lt;/a&gt; &lt;br&gt;
&amp;nbsp;</description>
    </item>
  </channel>
</rss>

