<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Cunningly conquering communicated console caveats. Comprende, mon Capitán?</title><link>http://blogs.msdn.com/b/michkap/archive/2010/05/07/10008232.aspx</link><description>If you are someone who is generally annoyed by my blather then you may skip to the code, otherwise I find it all interesting so I don't mind if you do, as well..... 
 Ok, so I wrote the blog The real problem(s) with all of these console "fallback" discussions</description><dc:language>en-US</dc:language><generator>Telligent Evolution Platform Developer Build (Build: 5.6.50428.7875)</generator><item><title>Consoling oneself with TrueType</title><link>http://blogs.msdn.com/b/michkap/archive/2010/05/07/10008232.aspx#10215315</link><pubDate>Thu, 22 Sep 2011 14:02:40 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10215315</guid><dc:creator>Sorting it all Out</dc:creator><description>&lt;p&gt;It was not quite a year ago, in Myth busting in the console , where Myth #12 was: &lt;/p&gt;
&lt;p&gt; Myth #12: You can&lt;/p&gt;
&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10215315" width="1" height="1"&gt;</description></item><item><title>It's ultimately your call, but your PowerShell cmdlets really don't need to SUCK this much</title><link>http://blogs.msdn.com/b/michkap/archive/2010/05/07/10008232.aspx#10186058</link><pubDate>Wed, 13 Jul 2011 14:02:12 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10186058</guid><dc:creator>Sorting it all Out</dc:creator><description>&lt;p&gt;I remember years ago, when the groundswell of opinion that wanted a replacement for CMD.EXE found itself&lt;/p&gt;
&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10186058" width="1" height="1"&gt;</description></item><item><title>Myth busting in the console </title><link>http://blogs.msdn.com/b/michkap/archive/2010/05/07/10008232.aspx#10073032</link><pubDate>Thu, 07 Oct 2010 17:41:57 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10073032</guid><dc:creator>Sorting it all Out</dc:creator><description>&lt;p&gt;I have been writing about internationalization and the console off and on for over five years now, and&lt;/p&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10073032" width="1" height="1"&gt;</description></item><item><title>Bugs hidden in plain sight, and commented that way too ANSWERS</title><link>http://blogs.msdn.com/b/michkap/archive/2010/05/07/10008232.aspx#10031225</link><pubDate>Sun, 27 Jun 2010 14:04:03 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10031225</guid><dc:creator>Sorting it all Out</dc:creator><description>&lt;p&gt;In the spirit of BUG SPOTTING answers , today&amp;#39;s blog will talk about the problems in Bugs hidden in plain&lt;/p&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10031225" width="1" height="1"&gt;</description></item><item><title>Bugs hidden in plain sight, and commented that way too</title><link>http://blogs.msdn.com/b/michkap/archive/2010/05/07/10008232.aspx#10027520</link><pubDate>Fri, 18 Jun 2010 21:42:04 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10027520</guid><dc:creator>Sorting it all Out</dc:creator><description>&lt;p&gt;In my time working in windows, I have seen a lot of different code. As begets any project of this size&lt;/p&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10027520" width="1" height="1"&gt;</description></item><item><title>re: Cunningly conquering communicated console caveats. Comprende, mon Capitán?</title><link>http://blogs.msdn.com/b/michkap/archive/2010/05/07/10008232.aspx#10011766</link><pubDate>Wed, 12 May 2010 15:44:08 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10011766</guid><dc:creator>Michael S. Kaplan</dc:creator><description>&lt;P&gt;Ok, I take that back, the logic was reversed. Fixed now....&lt;/P&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10011766" width="1" height="1"&gt;</description></item><item><title>re: Cunningly conquering communicated console caveats. Comprende, mon Capitán?</title><link>http://blogs.msdn.com/b/michkap/archive/2010/05/07/10008232.aspx#10011734</link><pubDate>Wed, 12 May 2010 15:13:54 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10011734</guid><dc:creator>Random832</dc:creator><description>&lt;p&gt;That code. It (well, translated back to C) seems to give the opposite results to what it should, and it doesn't make logical sense - wouldn't an invalid handle error from a console-only function mean it _is_ redirected?&lt;/p&gt;
&lt;p&gt;Also - what about pipes - not so much in terms of how to detect whether you're in a pipe [that's obvious enough once you have the filetype], but rather how do they fit into the whole unicode thing?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10011734" width="1" height="1"&gt;</description></item><item><title>re: Cunningly conquering communicated console caveats. Comprende, mon Capitán?</title><link>http://blogs.msdn.com/b/michkap/archive/2010/05/07/10008232.aspx#10011422</link><pubDate>Wed, 12 May 2010 06:03:14 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10011422</guid><dc:creator>Michael S. Kaplan</dc:creator><description>&lt;p&gt;Is what right?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10011422" width="1" height="1"&gt;</description></item><item><title>re: Cunningly conquering communicated console caveats. Comprende, mon Capitán?</title><link>http://blogs.msdn.com/b/michkap/archive/2010/05/07/10008232.aspx#10010986</link><pubDate>Tue, 11 May 2010 14:36:27 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10010986</guid><dc:creator>Random832</dc:creator><description>&lt;p&gt;Is this right? IsConsoleRedirected()...&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if (filetype == FILE_TYPE_CHAR) {&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;bool retval = GetConsoleMode(stdout, out mode);&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if ((retval == false) &amp;amp;&amp;amp; (Marshal.GetLastWin32Error() == ERROR_INVALID_HANDLE)) {&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;return false;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;} else {&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;return true;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;} else {&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;return false;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10010986" width="1" height="1"&gt;</description></item></channel></rss>