* TermInfoDriver.cs: replace Peek with DataAvailable.
svn path=/trunk/mcs/; revision=133461
+2009-05-03 Gonzalo Paniagua Javier <gonzalo@novell.com>
+
+ * TermInfoDriver.cs: replace Peek with DataAvailable.
+
2009-05-02 Sebastien Pouliot <sebastien@ximian.com>
* Console.cs: Remove Windows-specific p/invokes and SSC code
bool InputPending ()
{
// check if we've got pending input we can read immediately
- return readpos < writepos || stdin.Peek () != -1;
+ return readpos < writepos || stdin.DataAvailable ();
}
char [] echobuf = null;