[Mono-list] Console ReadKey not blocking returning 0, Mono 2.8.1, linux

Chris Rokusek crokusek at pacbell.net
Mon Jan 3 14:45:08 EST 2011


Hey, on to something now...I am actually piping to tee which seems to be the
problem.

   Mono an.exe | tee a.file

Removing the pipe cures the condition (| cat also breaks).  

Piping stdout shouldn't be affecting stdin right? 

Chris


-----Original Message-----
From: mono-list-bounces at lists.ximian.com
[mailto:mono-list-bounces at lists.ximian.com] On Behalf Of Piotr Wysocki
Sent: Monday, January 03, 2011 1:14 AM
To: mono-list at lists.ximian.com
Subject: Re: [Mono-list] Console ReadKey not blocking returning 0, Mono
2.8.1, linux

On 12/30/2010 08:21 PM, chris6789 wrote:
>
> Anyone else experiencing problems using ReadKey on linux?  I'm using Mono
> 2.8.1, CentOs 5.4.  The following code just prints "Ignoring 0 0" over and
> over (doesn't block).  ReadLine() also is not working.  Same code works on
> Windows under Mono.

Works for me (mono 2.8.1).
Haven't you redirected /dev/null or /dev/zero to stdin? ;)

-- 
Piotr Wysocki
Mobile Systems Research Labs, Poznan University of Technology
_______________________________________________
Mono-list maillist  -  Mono-list at lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list



More information about the Mono-list mailing list