<p>Hi Ben,</p>
<blockquote>
<p>Try Ctrl-Z<br>
"In a non-Cygwin Windows program, Ctrl-Z on input triggers an end-of-file condition."</p>
</blockquote>
<p>I had tried this, and since it's bash it just stopped the program, as expected.</p>
<p>I'd also looked at the page you referenced, but on reading it again thought I'd try unsetting the susp key:</p>
<pre><code>stty susp ''
</code></pre>
<p>And sure enough, running the mingw version works this time:</p>
<pre><code>$ ./mingw.exe
asdf<Enter>
<Ctrl-Z><Enter>
--
asdf

--
Read 5 characters
</code></pre>
<p>While it is a workaround, I'm not sure that asking users to modify the terminal settings and remember to use Ctrl-Z instead of Ctrl-D for Pharo in bash is going to be practical.</p>
<p>What do you think?</p>
<p>Just for LOLs, the following does work:</p>
<pre><code>$ cat | vm/PharoConsole Pharo7.0.image eval StdioStreamTest manualStdinTest | tee /dev/null
asdf<Enter>
<Ctrl-D>
</code></pre>
<p>It doesn't work in headless mode, I haven't figured out why yet.</p>
<p>Cheers,<br>
Alistair</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you commented.<br />Reply to this email directly, <a href="https://github.com/OpenSmalltalk/opensmalltalk-vm/pull/254#issuecomment-384941529">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AhLyW2kRcu3ab79MI_JSavh2SDHsw-o5ks5tsv6AgaJpZM4Tg0qx">mute the thread</a>.<img src="https://github.com/notifications/beacon/AhLyW9M1DvCRxBi8ONQYUfup7hMMaJO9ks5tsv6AgaJpZM4Tg0qx.gif" height="1" width="1" alt="" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
  <link itemprop="url" href="https://github.com/OpenSmalltalk/opensmalltalk-vm/pull/254#issuecomment-384941529"></link>
  <meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>

<script type="application/json" data-scope="inboxmarkup">{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/OpenSmalltalk/opensmalltalk-vm","title":"OpenSmalltalk/opensmalltalk-vm","subtitle":"GitHub repository","main_image_url":"https://cloud.githubusercontent.com/assets/143418/17495839/a5054eac-5d88-11e6-95fc-7290892c7bb5.png","avatar_image_url":"https://cloud.githubusercontent.com/assets/143418/15842166/7c72db34-2c0b-11e6-9aed-b52498112777.png","action":{"name":"Open in GitHub","url":"https://github.com/OpenSmalltalk/opensmalltalk-vm"}},"updates":{"snippets":[{"icon":"PERSON","message":"@akgrant43 in #254: Hi Ben,\r\n\r\n\u003e Try Ctrl-Z\r\n\u003e \"In a non-Cygwin Windows program, Ctrl-Z on input triggers an end-of-file condition.\"\r\n\r\nI had tried this, and since it's bash it just stopped the program, as expected.\r\n\r\nI'd also looked at the page you referenced, but on reading it again thought I'd try unsetting the susp key:\r\n\r\n```\r\nstty susp ''\r\n```\r\n\r\nAnd sure enough, running the mingw version works this time:\r\n\r\n```\r\n$ ./mingw.exe\r\nasdf\u003cEnter\u003e\r\n\u003cCtrl-Z\u003e\u003cEnter\u003e\r\n--\r\nasdf\r\n\r\n--\r\nRead 5 characters\r\n```\r\n\r\nWhile it is a workaround, I'm not sure that asking users to modify the terminal settings and remember to use Ctrl-Z instead of Ctrl-D for Pharo in bash is going to be practical.\r\n\r\nWhat do you think?\r\n\r\nJust for LOLs, the following does work:\r\n\r\n```\r\n$ cat | vm/PharoConsole Pharo7.0.image eval StdioStreamTest manualStdinTest | tee /dev/null\r\nasdf\u003cEnter\u003e\r\n\u003cCtrl-D\u003e\r\n```\r\n\r\nIt doesn't work in headless mode, I haven't figured out why yet.\r\n\r\n\r\nCheers,\r\nAlistair\r\n"}],"action":{"name":"View Pull Request","url":"https://github.com/OpenSmalltalk/opensmalltalk-vm/pull/254#issuecomment-384941529"}}}</script>