summaryrefslogtreecommitdiff
path: root/lib/chessh/ssh/client/screen.ex
diff options
context:
space:
mode:
authorElizabeth Hunt <elizabeth.hunt@simponic.xyz>2023-10-09 10:43:20 -0600
committerElizabeth Hunt <elizabeth.hunt@simponic.xyz>2023-10-09 10:43:20 -0600
commitf6fbffab85acf256c49caed991314058c931cb8f (patch)
treeea490fd7b982f89f6f8c73cce49a155dbf7fda9d /lib/chessh/ssh/client/screen.ex
parent639b4ac9dc9ca368a9d924821feab33eca24c66e (diff)
downloadchessh-f6fbffab85acf256c49caed991314058c931cb8f.tar.gz
chessh-f6fbffab85acf256c49caed991314058c931cb8f.zip
add colors to chatssh
Diffstat (limited to 'lib/chessh/ssh/client/screen.ex')
-rw-r--r--lib/chessh/ssh/client/screen.ex6
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/chessh/ssh/client/screen.ex b/lib/chessh/ssh/client/screen.ex
index 20273a5..88beb18 100644
--- a/lib/chessh/ssh/client/screen.ex
+++ b/lib/chessh/ssh/client/screen.ex
@@ -1,8 +1,6 @@
defmodule Chessh.SSH.Client.Screen do
@callback render(width :: integer(), height :: integer(), state :: any()) :: any()
@callback input(
- width :: integer(),
- height :: integer(),
action :: any(),
data :: String.t(),
state :: any()
@@ -17,8 +15,8 @@ defmodule Chessh.SSH.Client.Screen do
def handle_info({:render, width, height}, state),
do: {:noreply, render(width, height, state)}
- def handle_info({:input, width, height, action, data}, state),
- do: {:noreply, input(width, height, action, data, state)}
+ def handle_info({:input, action, data}, state),
+ do: {:noreply, input(action, data, state)}
end
end
end