It has always been traditional in Unix to treat the console input as just 
another "byte stream", just like a file is a byte stream.  This has 
carried over into Windows.  The console is represented by "standard input" 
which is a file handle.  This is what allows you to redirect console 
output to a file, or (less often) pass the contents of a file as input to 
a process.

J. Merrill



From:
Tom <[email protected]>
To:
Neko intermediate language mailing list <[email protected]>
Date:
05/18/2010 12:21 PM
Subject:
Re: [Neko] Accepting user input from the console in both windows and linux
Sent by:
<[email protected]>



Thanks. That worked.

May I ask what the default input has to do with the File class?

Regards,
Tom

2010/5/17 Nicolas Cannasse <[email protected]>
Tom a écrit :

Hi there,

I'm pretty new to Neko and am having trouble finding out how to receive 
input from the console in both windows and linux.

I'm writing a server application which has to be able to receive commands 
through the console.

Try reading s...@file_stdin() or calling s...@sys_getch()

Nicolas

-- 
Neko : One VM to run them all
(http://nekovm.org)
-- 
Neko : One VM to run them all
(http://nekovm.org)

-- 
Neko : One VM to run them all
(http://nekovm.org)

Reply via email to