Yes I would really like to have that in Pharo 1.2 if people send us some code.

Stef

On May 11, 2010, at 1:48 AM, Igor Stasenko wrote:

> 2010/5/11 Andrei Stebakov <[email protected]>:
>> I've been just going through "Computer Programming with GNU Smalltalk" book
>> using Pharo 1.0 as an actual ST implementation.
>> The book mentions "stdin nextLine" as a way to get an input from a user via
>> the standard input.
>> Is there a similar class/method in Pharo?
>> 
>> 
> If you are on linux, you can do just:
> 
> stream := FileStream readOnlyFileNamed: '/dev/stdin'.
> stream nextLine
> 
> Unfortunately, Squeak VM doesn't provides a default API for working
> with stdin/out,
> since its more a GUI-centric , not command-line centric thing.
> 
>> 
>> _______________________________________________
>> Pharo-project mailing list
>> [email protected]
>> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
>> 
> 
> 
> 
> -- 
> Best regards,
> Igor Stasenko AKA sig.
> 
> _______________________________________________
> Pharo-project mailing list
> [email protected]
> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project


_______________________________________________
Pharo-project mailing list
[email protected]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project

Reply via email to