<p dir="ltr">For note, the 'swallowed' keys pressed in the Erlang shell seem to get passed to stdin of the launched child process, and not all input is swallowed, it seems quite random whether it gets passed to the Erlang shell or to the launched process.</p>

<div class="gmail_quote">On Aug 11, 2013 7:34 AM, "Serge Aleynikov" <<a href="mailto:serge@aleynikov.org">serge@aleynikov.org</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
While looking at the issue described here [1] I drilled the issue down<br>
to the following problem with erlang:open_port/2 (note: get<br>
minecraft_server.1.6.2.jar here [2]):<br>
<br>
When executing:<br>
<br>
f(P), P = erlang:open_port({spawn, "java -Xms1G -Xmx1G -jar<br>
minecraft_server.1.6.2.jar nogui"}, [binary, exit_status, nouse_stdio]).<br>
<br>
The Erlang shell has a very noticeable lag between key presses, and<br>
seems to "swallow" some typed keys.<br>
<br>
On the other hand, when running the same command without 'nouse_stdio'<br>
option, the Erlang shell behaves as expected.<br>
<br>
Is this a bug?  If not, how can I take advantage of nouse_stdio and not<br>
have that impact on the Erlang shell?<br>
<br>
Serge<br>
<br>
[1] <a href="https://github.com/saleyn/erlexec/issues/17" target="_blank">https://github.com/saleyn/erlexec/issues/17</a><br>
[2] wget<br>
'<a href="https://s3.amazonaws.com/Minecraft.Download/versions/1.6.2/minecraft_server.1.6.2.jar" target="_blank">https://s3.amazonaws.com/Minecraft.Download/versions/1.6.2/minecraft_server.1.6.2.jar</a>'<br>
_______________________________________________<br>
erlang-questions mailing list<br>
<a href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a><br>
<a href="http://erlang.org/mailman/listinfo/erlang-questions" target="_blank">http://erlang.org/mailman/listinfo/erlang-questions</a><br>
</blockquote></div>