<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Exchange Server">
<!-- converted from text --><style><!-- .EmailQuote { margin-left: 1pt; padding-left: 4pt; border-left: #800000 2px solid; } --></style>
</head>
<body>
<meta content="text/html; charset=UTF-8">
<style type="text/css" style="">
<!--
p
        {margin-top:0;
        margin-bottom:0}
-->
</style>
<div dir="ltr">
<div id="x_divtagdefaultwrapper" dir="ltr" style="font-size:12pt; color:#000000; 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>
<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>
<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 class="x_OWAAutoLink" href="https://github.com/StephanEggermont/pharo/blob/development/src/UIManager/CommandLineUIManager.class.st#L104">
this one for Pharo</a> in Squeak.</p>
<p><br>
</p>
<p>Best,</p>
<p>Christoph</p>
<div id="x_Signature">
<div name="x_divtagdefaultwrapper" style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:; margin:0">
<div><font color="#808080" size="2"></font></div>
</div>
</div>
</div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="x_divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>Von:</b> Squeak-dev <squeak-dev-bounces@lists.squeakfoundation.org> im Auftrag von tim Rowledge <tim@rowledge.org><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 class="PlainText"><br>
<br>
> On 2019-11-01, at 11:29 AM, Thiede, Christoph <Christoph.Thiede@student.hpi.uni-potsdam.de> 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">http://map.squeak.org/package/2c3b916b-75e2-455b-b25d-eba1bbc94b84</a>), OSProcess (<a href="http://map.squeak.org/package/812c9d14-5236-4cad-82ea-cc3e3837e30d">http://map.squeak.org/package/812c9d14-5236-4cad-82ea-cc3e3837e30d</a>),
 and Eliot's simple exemplar REPL thing (<a href=""></a>https://github.com/OpenSmalltalk/opensmalltalk-vm/blob/Cog/image/LoadReader.st &
<a href="https://github.com/OpenSmalltalk/opensmalltalk-vm/blob/Cog/image/StartReader.st">
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">
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">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; tim@rowledge.org; <a href="http://www.rowledge.org/tim">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>
</body>
</html>