nerves_runtime v0.4.1 Nerves.Runtime.Shell

Entry point for a primitive command shell available through Erlang’s job control mode. To use, type Ctrl+G at an iex prompt to enter job control mode. At the prompt, type s sh and then c to connect to it. To return to the iex prompt, type Ctrl+G again and c 1.

Here’s an example session:

iex> [Ctrl+G]
User switch command
--> s sh
--> j
1  {erlang,apply,[#Fun<Elixir.IEx.CLI.1.112225073>,[]]}
2* {'Elixir.Nerves.Runtime.Shell',start,[]}
--> c
Nerves Interactive Host Shell
sh[1]> find . -name "shell.ex"
./lib/nerves_runtime/shell.ex
sh[2]> [Ctrl+G]
User switch command
--> c 1

nil
iex>

Link to this section Summary

Functions

This is the callback invoked by Erlang’s shell when someone presses Ctrl+G and types s Elixir.Nerves.Runtime.Shell or s sh

Link to this section Functions

Link to this function dont_display_result()
Link to this function start(opts \\ [], mfa \\ {Nerves.Runtime.Shell, :dont_display_result, []})

This is the callback invoked by Erlang’s shell when someone presses Ctrl+G and types s Elixir.Nerves.Runtime.Shell or s sh.