defmodule TrongleSSH.SSH.Tui do alias TrongleSSH.SSH.Session defmodule State do defstruct connection_manager_pid: nil, width: nil, height: nil, session: %Session{} end use TrongleSSH.SSH.Screen def render(width, height, %State{connection_manager_pid: connection_manager_pid} = state) do send( connection_manager_pid, {:send_to_ssh, render_state(width, height, state)} ) state end def input(width, height, action, %State{} = state) do state end end