erlang shell implementation question

Mariano Guerra luismarianoguerra@REDACTED
Sun Sep 26 08:05:33 CEST 2010


On Sun, Sep 26, 2010 at 1:57 AM, Mariano Guerra
<luismarianoguerra@REDACTED> wrote:
> Hi,
>
>  I'm trying to improve the implementation of efene's[0] shell. Right
> now it doesn't have readline-like capabilities, that is, the ability
> to edit the line before evaluating it, or having a history of previous
> commands.
>
> I was reading the shell.erl file and I couldn't find the place where
> the input is read and the features described above (plus shortcuts
> like ctrl+a) are implemented.
>
> can someone point me to the file and function where this is implemented?

I read a little more and now I'm looking at edlin.erl, group.erl and
user_drv.erl, still can't find a simple way to ask for a character or
something like that.

http://github.com/erlang/otp/blob/dev/lib/stdlib/src/edlin.erl
http://github.com/erlang/otp/blob/dev/lib/kernel/src/user_drv.erl
http://github.com/erlang/otp/blob/dev/lib/kernel/src/group.erl


More information about the erlang-questions mailing list