View Source Termite.Terminal.Adapter behaviour (Termite v0.4.5)
The behaviour module for implementing an adapter.
Summary
Callbacks
Return a reference for the reader for handling input messages.
Returns a map of the width and height
Start the terminal adapter.
Stop the adapter synchronously and release its resources.
Write a string to the terminal. This function is expected to be implemented synchronously in the adapter.
Callbacks
Return a reference for the reader for handling input messages.
Returns a map of the width and height
Start the terminal adapter.
@callback stop(terminal :: term()) :: :ok
Stop the adapter synchronously and release its resources.
This callback is optional. Adapters wrapping a shared I/O device should leave that device running.
Write a string to the terminal. This function is expected to be implemented synchronously in the adapter.