blob: 4fbbcf5e4278553c2f0c79e035f6f4a03f5d7a1f (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
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
|