[erlang-questions] Getting a password from escript / I/O server introduction

Mikhail Sobolev mikhail.sobolev@REDACTED
Thu Nov 24 07:49:21 CET 2011


Hi Alex,

On 24 November 2011 00:12, Alex Shneyderman <a.shneyderman@REDACTED> wrote:
>> (On a related note, it seems that it's impossible to get user input
>> without echoing anything to the screen.)
>
> I use io:get_line("") for echo-less prompt.
Thanks for the suggestion, however this simple script does not show the
expected behaviour:

#! /usr/bin/escript
>
> main(_) ->
>    io:format("Input > "),
>    R = io:get_line(""),
>    io:format(" -> ~p\n", [R]).
>

--
Misha
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20111124/0daa9997/attachment.htm>


More information about the erlang-questions mailing list