[squeak-dev] Windows, stdin, stdout

tim Rowledge tim at rowledge.org
Fri Apr 6 21:42:13 UTC 2018



> On 06-04-2018, at 11:10 AM, Alistair Grant <akgrant0710 at gmail.com> wrote:
> 
> Hi Benoit,
> 
> On 6 April 2018 at 12:16, Benoit St-Jean via Squeak-dev
> <squeak-dev at lists.squeakfoundation.org> wrote:
>> Is there any way I can start squeak from a command window, *headless*, and
>> WITHOUT providing a script and have an interactive application^  Say, for
>> instance, my application waits for input and answers back the square of the
>> number I type in?
>> 
>> I've tried a gazillion examples I found and it just doesn't work at all...
>> 
>> I'm on Windows 10 if that helps.
> 
> https://github.com/OpenSmalltalk/opensmalltalk-vm/blob/Cog/image/buildspurtrunkreaderimage.sh

Just for the record here for the future - this process 
a) simply loads the CogTools-Listener (sub)package from the VMMaker repository - which is a very small bit of code we could very sensibly include in the default image
b) uses a simple initial script to create an image that will start up at the beginning of an incantation that loops around the StdioListener. All you do is start up the image saved after loading the Listener tools with the StartReader.st - subsequent runs do not need that.

Unfortunately it doesn't seem to be working quite right on my Pi at the moment; I get a "squeak>" prompt but it doesn't seem to ever read any input. I know it works in principle because I've used it plenty of times in the past , but clearly I'm forgetting some important detail.

tim
--
tim Rowledge; tim at rowledge.org; http://www.rowledge.org/tim
Useful Latin Phrases:- Te audire no possum. Musa sapientum fixa est in aure. = I can't hear you. I have a banana in my ear.




More information about the Squeak-dev mailing list