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

Anders Nygren anders.nygren@REDACTED
Thu Nov 24 23:23:09 CET 2011


It does not work from escript!
According to Bjorn a few years ago its because escript uses the old io server.

/Anders

On Thu, Nov 24, 2011 at 2:30 PM, Joe Armstrong <erlang@REDACTED> wrote:
> The undocumented io:get_password() might  do what you want.
> try:
>> X = io:get_password().
> Sees to work - I've no idea why it's not documented.
> /Joe
>
> On Wed, Nov 23, 2011 at 11:12 PM, 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.
>> _______________________________________________
>> erlang-questions mailing list
>> erlang-questions@REDACTED
>> http://erlang.org/mailman/listinfo/erlang-questions
>
>
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://erlang.org/mailman/listinfo/erlang-questions
>
>



More information about the erlang-questions mailing list