From 58d0b1a89c461467c9ea6229f9a6b3d5ed573da5 Mon Sep 17 00:00:00 2001 From: Simponic Date: Sat, 31 Dec 2022 02:29:38 -0700 Subject: A simple stalling TUI! Also, ensure sessions are counted correctly. Next up, some way of pub-sub across multiple nodes --- lib/chessh/ssh/cli.ex | 26 -------------------------- 1 file changed, 26 deletions(-) delete mode 100644 lib/chessh/ssh/cli.ex (limited to 'lib/chessh/ssh/cli.ex') diff --git a/lib/chessh/ssh/cli.ex b/lib/chessh/ssh/cli.ex deleted file mode 100644 index 71d789b..0000000 --- a/lib/chessh/ssh/cli.ex +++ /dev/null @@ -1,26 +0,0 @@ -defmodule Chessh.SSH.Cli do - @behaviour :ssh_server_channel - - def init(_args) do - {:ok, %{}} - end - - def handle_msg(_message, state) do - {:ok, state} - end - - def handle_ssh_msg( - {:ssh_cm, _connection_handler, {:exit_signal, channel_id, _signal, _err, _lang}}, - state - ) do - {:stop, channel_id, state} - end - - def handle_ssh_msg(_message, state) do - {:ok, state} - end - - def terminate(_reason, _state) do - :ok - end -end -- cgit v1.3