[erlang-questions] erlang 21

Adam Lindberg hello@REDACTED
Thu Jul 12 10:07:19 CEST 2018


The proper solution here would be to support Ctrl+D as with most other interactive terminals out there:
https://bugs.erlang.org/browse/ERL-331

Cheers,
Adam

> On 7. Jul 2018, at 13:03, Dmytro Lytovchenko <dmytro.lytovchenko@REDACTED> wrote:
> 
> I would say there is a clear usability flaw here. The shell should be smart enough to distinguish which command was typed (^G, ^C or q() or exit() or init:stop() or halt()) and whether there is a remote shell active. What it would do is to ask user what is his intent or somehow confirm that remote shell is active and REMOTE VM will now quit.
> 
> If the shell isn't that smart, there's a great improvement waiting to happen.
> 
> 2018-07-07 12:59 GMT+02:00 <zxq9@REDACTED>:
> A quick anecdote...
> 
> I and a lot of people on my team used to habitually halt() to exit.
> 
> Then one day someone abruptly shut down a remote node they were connected
> to because, well, they had that habit.
> 
> ^G is a safer habit to form and reminds you where you are at when you hit
> it, whether connected to a remote node from a local erl shell (want 'q'),
> or via SSH (want 'exit()').
> 
> -Craig
> _______________________________________________
> 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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: Message signed with OpenPGP
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20180712/f2019e01/attachment.bin>


More information about the erlang-questions mailing list