Hi Raimo,<br><br><div class="gmail_quote">On 24 November 2011 10:41, Raimo Niskanen <span dir="ltr"><<a href="mailto:raimo%2Berlang-questions@erix.ericsson.se">raimo+erlang-questions@erix.ericsson.se</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="im">On Thu, Nov 24, 2011 at 10:34:39AM +0200, Mikhail Sobolev wrote:<br>
> Hi Alex,<br>
><br>
> On 24 November 2011 10:18, Alex Shneyderman <<a href="mailto:a.shneyderman@gmail.com">a.shneyderman@gmail.com</a>> wrote:<br>
><br>
> > You expect the get_line not to print anything?<br>
<br>
</div>Have you tried the simple solution man io suggests; here tried in the<br>
shell not tried in an escript:<br>
<br>
Eshell V5.8.4 (abort with ^G)<br>
1> f(V), io:setopts([{echo,false}]), V = io:get_line("Prompt> "), io:setopts([{echo,true}]), {got,V}.<br>
Prompt> {got,"hello\n"}<br>
<br>
Nothing is echoed when I type "hello" but the result {got,V}<br>
is printed by the shell.<br>
<br></blockquote><div>Yes, I have. However this is where the problem appears: io:setopts returns {error,enotsup} and this seem to be the difference between the shell and escript.<br><br>--<br>Misha <br></div></div><br>