I really miss `ctrl-l` to clear the screen and `ctrl-d` to exit like other 
REPLs provide. Since `ctrl-d` is ignored, I would chose to alias it to one 
of the two "break" codes: `ctrl-c` or `ctrl-g`.

I've read through the [Iex source 
code](https://github.com/elixir-lang/elixir/tree/master/lib/iex/lib) and 
don't see how to extend the code. The closest thing I've found is [the 
`tab` completion 
handler](https://github.com/elixir-lang/elixir/blob/master/lib/iex/lib/iex/autocomplete.ex).
 
It seems to work via a plug-in strategy as this section implies:

  @doc """
  Provides one helper function that is injected into connecting
  remote nodes to properly handle autocompletion.
  """
  def remsh(node) do
    fn e ->
      case :rpc.call(node, IEx.Autocomplete, :expand, [e]) do
        {:badrpc, _} -> {:no, '', []}
        r -> r
      end
    end
  end


But I still can't figure out how the `tab` character is specified for this 
"hook" (if it even is a hook).

Are "special" characters like `tab` and `ctrl-c` handled exclusively by an 
Erlang server, and somehow Iex's current architecture rules out adding new 
key combinations?

-- 
You received this message because you are subscribed to the Google Groups 
"elixir-lang-core" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elixir-lang-core/9fb1394c-ba9c-4882-8eba-f6eee0410ccd%40googlegroups.com.

Reply via email to