[erlang-questions] An interactive erlang console
bengt
cean.ebengt@REDACTED
Tue Feb 20 08:41:02 CET 2018
Greetings,
Can you provide some additional information?
There are other functions in the IO module, e.g. fread/2or get_line/1, that do not need a ‘.’. Have you tried these? Why are they not a good fit?
Best Wishes,
bengt
> On 20 Feb 2018, at 04:34, 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20180220/f48b89a8/attachment.htm>
More information about the erlang-questions
mailing list