<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Nov 4, 2019 at 3:16 PM Thiede, Christoph <<a href="mailto:Christoph.Thiede@student.hpi.uni-potsdam.de">Christoph.Thiede@student.hpi.uni-potsdam.de</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">





<div>


<div dir="ltr">
<div id="gmail-m_8921206120363305221x_divtagdefaultwrapper" dir="ltr" style="font-size:12pt;color:rgb(0,0,0);font-family:Calibri,Helvetica,sans-serif">
<p>Hi,</p>
<p><br>
</p>
<p>Thank you for all the interesting links, most of all to the SqueakShell! It is really cool, but however, it actually does not solve my corner.</p>
<p><br>
</p>
<p>@Fabio:</p>
<p><br>
</p>
<p></p>
<div>> > As far as I found out, Squeak only has a CommandLineToolSet. Am I missing a class? Do you think this would be a useful extension?</div>
<div>> Could you elaborate on your use case? Is this simply to be able to write interactive cmd scripts in Squeak? </div>
<p></p>
<p><br>
</p>
<p>Exactly. If you run a simple script such as [<span>HelpIcons squeakIcon writeOnFileNamed: 'testicon.png'] in headless mode and testicon.png already exists, the execution will be halted and the VM is waiting for a user interaction that will never happen.
 It would be much nicer to get a prompt via stdout + stdin to answer.</span></p></div></div></div></blockquote><div>I agree. Maybe there could be two modes: `strict` and `interactive`. The former quits the image with an error and the latter prompts for user input via stdin as you suggest.<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><div dir="ltr"><div id="gmail-m_8921206120363305221x_divtagdefaultwrapper" dir="ltr" style="font-size:12pt;color:rgb(0,0,0);font-family:Calibri,Helvetica,sans-serif">
<p><span><br>
</span></p>
<p>And even if the VM is run in a read-only shell, you would at least know <i>why</i> it does not continue to execute. For example, this would be helpful on smalltalkCI - if you had not caught all ProvideAnswerNotifications in your tests, you would basically
 have no hint why you get a timeout.</p></div></div></div></blockquote><div>I agree, it'd be great if smalltalkCI builds fail in case a ProvideAnswerNotification is thrown. Contributions to smalltalkCI are welcome. ;)</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><div dir="ltr"><div id="gmail-m_8921206120363305221x_divtagdefaultwrapper" dir="ltr" style="font-size:12pt;color:rgb(0,0,0);font-family:Calibri,Helvetica,sans-serif">
<p><br>
</p>
<p>I know Squeak is primarily made for use in a VM window, but nonetheless, I would love to have an implementation similar to
<a href="https://github.com/StephanEggermont/pharo/blob/development/src/UIManager/CommandLineUIManager.class.st#L104" target="_blank">
this one for Pharo</a> in Squeak.</p></div></div></div></blockquote><div>Cool, didn't know something like this exists in Pharo.</div><div><br></div><div>Best,</div><div>Fabio</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><div dir="ltr"><div id="gmail-m_8921206120363305221x_divtagdefaultwrapper" dir="ltr" style="font-size:12pt;color:rgb(0,0,0);font-family:Calibri,Helvetica,sans-serif">
<p><br>
</p>
<p>Best,</p>
<p>Christoph</p>
<div id="gmail-m_8921206120363305221x_Signature">
<div name="x_divtagdefaultwrapper">
<div><font color="#808080" size="2"></font></div>
</div>
</div>
</div>
<hr style="display:inline-block;width:98%">
<div id="gmail-m_8921206120363305221x_divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>Von:</b> Squeak-dev <<a href="mailto:squeak-dev-bounces@lists.squeakfoundation.org" target="_blank">squeak-dev-bounces@lists.squeakfoundation.org</a>> im Auftrag von tim Rowledge <<a href="mailto:tim@rowledge.org" target="_blank">tim@rowledge.org</a>><br>
<b>Gesendet:</b> Freitag, 1. November 2019 20:01:50<br>
<b>An:</b> The general-purpose Squeak developers list<br>
<b>Betreff:</b> Re: [squeak-dev] CommandLineUIManager</font>
<div> </div>
</div>
</div>
<font size="2"><span style="font-size:10pt">
<div><br>
<br>
> On 2019-11-01, at 11:29 AM, Thiede, Christoph <<a href="mailto:Christoph.Thiede@student.hpi.uni-potsdam.de" target="_blank">Christoph.Thiede@student.hpi.uni-potsdam.de</a>> wrote:<br>
> <br>
> Hi all,<br>
> <br>
> does Squeak already support something like a CommandLineUIManager?<br>
<br>
We discussed some stuff around this topic back in May '19 relating to "Running Squeak fro ma unix shell script file with #! squeak..." (including the spilling mistook).<br>
<br>
And don't forget CommandShell (<a href="http://map.squeak.org/package/2c3b916b-75e2-455b-b25d-eba1bbc94b84" target="_blank">http://map.squeak.org/package/2c3b916b-75e2-455b-b25d-eba1bbc94b84</a>), OSProcess (<a href="http://map.squeak.org/package/812c9d14-5236-4cad-82ea-cc3e3837e30d" target="_blank">http://map.squeak.org/package/812c9d14-5236-4cad-82ea-cc3e3837e30d</a>),
 and Eliot's simple exemplar REPL thing (<a></a><a href="https://github.com/OpenSmalltalk/opensmalltalk-vm/blob/Cog/image/LoadReader.st" target="_blank">https://github.com/OpenSmalltalk/opensmalltalk-vm/blob/Cog/image/LoadReader.st</a> &
<a href="https://github.com/OpenSmalltalk/opensmalltalk-vm/blob/Cog/image/StartReader.st" target="_blank">
https://github.com/OpenSmalltalk/opensmalltalk-vm/blob/Cog/image/StartReader.st</a>)<br>
<br>
I also see that <a href="http://www.squeaksource.com/@azqxWT7-o5bjyYS2/vd0deS9q" target="_blank">
http://www.squeaksource.com/@azqxWT7-o5bjyYS2/vd0deS9q</a> claims to include a REPL package (never tried it, see also
<a href="http://gulik.pbworks.com/w/page/7760030/REPLServer" target="_blank">http://gulik.pbworks.com/w/page/7760030/REPLServer</a>)<br>
<br>
And I'm sure Craig has done something related but I simply cannot get google to find it right now<br>
<br>
tim<br>
--<br>
tim Rowledge; <a href="mailto:tim@rowledge.org" target="_blank">tim@rowledge.org</a>; <a href="http://www.rowledge.org/tim" target="_blank">http://www.rowledge.org/tim</a><br>
 Negligent (adj.), describes a condition in which you absentmindedly answer the door in your nightgown.<br>
<br>
<br>
<br>
</div>
</span></font>
</div>

<br>
</blockquote></div></div>