[erlang-questions] An interactive erlang console
Joe Armstrong
erlang@REDACTED
Tue Feb 20 13:12:18 CET 2018
$ erl
1> io:get_line('Name > ').
Name > Joe with no dot
"Joe with no dot\n"
/Joe
On Tue, Feb 20, 2018 at 4:34 AM, Arun <arunp@REDACTED> wrote:
> Hi,
>
> I am working on an erlang application which provides a command line tool to
> run some basic tests on hardware. The tool work like this,
> as the application starts, it will prompt a message on the console, user can
> give any options present in the console, based on the options
> provided by user the application performs the required tests.
>
> I am using io:read/1, functions to display the message and read the user
> provided options. But the problem with this function is that, user has to
> give a
> dot at the end. Is it possible to avoid forcing user to put dot at the end
> of every option he provides, any better function or is there any better way
> build
> a command line tool in erlang.
>
> Can someone please help me out in this.
>
> Thanks and regards,
> Arun
>
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://erlang.org/mailman/listinfo/erlang-questions
>
More information about the erlang-questions
mailing list