我可以自定义 Elixir iex 以使用 ctrl-D 退出吗?
Can I customize Elixir iex to exit with ctrl-D?
我知道 但我喜欢像在其他 REPL 中一样使用 ctrl-D(例如,node
、irb
。)
如何自定义 iex
来执行此操作?
据我所知,这目前是不可能的。 IEx 操作支持直接来自 Erlang shell,而这在 Erlang 中没有实现。
很可能它也永远不会实施 - 此更改已被提议并被拒绝:https://github.com/erlang/otp/pull/983
不可能使用 AKAIK,但是 可以 使用 ctrl-\
退出 Iex 和 Erl。
我知道 node
、irb
。)
如何自定义 iex
来执行此操作?
据我所知,这目前是不可能的。 IEx 操作支持直接来自 Erlang shell,而这在 Erlang 中没有实现。
很可能它也永远不会实施 - 此更改已被提议并被拒绝:https://github.com/erlang/otp/pull/983
不可能使用 AKAIK,但是 可以 使用 ctrl-\
退出 Iex 和 Erl。