View Source ExTerm
ExTerm is an terminal Phoenix.LiveView
component. ExTerm is responsible
for converting erlang IO protocol messages into web output and translating
web input into responses in the IO protocol.
installation
Installation
Add ExTerm to your mix.exs:
def deps do
[
# ...
{:ex_term, "~> 0.2"}
# ...
]
end
def deps do
[
# ...
{:ex_term, "~> 0.2"}
# ...
]
end
how-to-create-a-live-terminal-in-your-phoenix-router
How to create a live terminal in your Phoenix router
You must supply a Phoenix.PubSub
server that is the communication channel
to send important updates to the liveview. It's recommended to use the
PubSub server associated with your web server.
import ExTerm.Router
scope "/live_term" do
pipe_through :browser
live_term "/", pubsub_server: MyAppWeb.PubSub
end
documentation
Documentation
Documentation is available on hexdocs.pm: https://hexdocs.pm/ex_term
planned-pro-features
Planned (Pro?) features:
- provenance tracking
- multiplayer mode