Okay, I&#39;ll file a bug report. Maybe someone else on Windows could confirm this behavior?<div><div><div><br><div class="gmail_quote">On Sat, Aug 22, 2009 at 11:36 PM, Jason Dagit <span dir="ltr">&lt;<a href="mailto:dagit@codersbase.com">dagit@codersbase.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div><div></div><div class="h5">On Sat, Aug 22, 2009 at 2:14 PM, Peter Verswyvelen&lt;<a href="mailto:bugfact@gmail.com">bugfact@gmail.com</a>&gt; wrote:<br>

&gt; The following program<br>
&gt; <a href="http://hpaste.org/fastcgi/hpaste.fcgi/view?id=8445#a8445" target="_blank">http://hpaste.org/fastcgi/hpaste.fcgi/view?id=8445#a8445</a><br>
&gt; should echo the ASCII code of each character the user types, on the fly,<br>
&gt; with no line buffering whatsoever.<br>
&gt; But it doesn&#39;t. At least not under Windows&#39;s cmd, and even less with msys.<br>
&gt; Under Windows, I have to press enter before anything is printed to the<br>
&gt; screen. It then always prints 71 (that&#39;s upper G, no idea where that comes<br>
&gt; from), and then blocks. Pressing enter again prints the codes of all<br>
&gt; characters typed, except the first one, following by the two codes of the<br>
&gt; linefeeds. So e.g. when I type &quot;abc&quot; ENTER, I get 71, then hitting ENTER<br>
&gt; again, I get 98 99 10 10.<br>
&gt; Under msys, it just ignores both the hSetBuffering and hSetEcho, but when<br>
&gt; hitting enter, it at least prints the codes correctly.<br>
&gt; How does it behave under OSX and Linux? Is this a bug or am I doing<br>
&gt; something wrong?<br>
<br>
</div></div>For me on OSX it has the intended behavior.  Which is to say, every<br>
time I type a key I see the ascii value of the key.  I have no idea<br>
why windows is being different.<br>
<font color="#888888"><br>
Jason<br>
</font></blockquote></div><br></div></div></div>