From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <2f9b2fbae43d5ebcc2fc6068d5635dd8@plan9.escet.urjc.es> To: 9fans@cse.psu.edu Subject: Re: [9fans] events From: paurea@plan9.escet.urjc.es In-Reply-To: <8d670231ccf253e2927478ede455ee39@plan9.bell-labs.com> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Date: Wed, 19 Feb 2003 15:08:47 +0100 Topicbox-Message-UUID: 6978663e-eacb-11e9-9e20-41e7f4b1d025 > > Are you reading from a file? Usually stdin is the console > but the keyboard will get at least half those events instead. I wanted to run the program with a pipe to the standard input. generator|consumer > > Also, > case Inkey: > print("something for us..."); > readn(Stdin,msg,1); Yes, I know, but that code isn't executed anyway... I'll take care of that when something is printed. > > Reading one byte at a time seems like a recipe > for trouble anyway, especially if UTF is involved. The program gets its input from a pipe from another program which I have written. THX. Gorka