diff options
Diffstat (limited to 'lib/chessh/ssh/tui.ex')
-rw-r--r-- | lib/chessh/ssh/tui.ex | 42 |
1 files changed, 0 insertions, 42 deletions
diff --git a/lib/chessh/ssh/tui.ex b/lib/chessh/ssh/tui.ex index 1838fb8..483d882 100644 --- a/lib/chessh/ssh/tui.ex +++ b/lib/chessh/ssh/tui.ex @@ -144,7 +144,6 @@ defmodule Chessh.SSH.Tui do {:ssh_cm, connection_handler, {:shell, channel_id, want_reply?}}, %{width: width, height: height, player_session: player_session} = state ) do - Logger.debug("Session #{player_session.id} requested shell") :ssh_connection.reply_request(connection_handler, want_reply?, :success, channel_id) {:ok, client_pid} = @@ -162,47 +161,6 @@ defmodule Chessh.SSH.Tui do end def handle_ssh_msg( - {:ssh_cm, connection_handler, {:exec, channel_id, want_reply?, cmd}}, - %State{} = state - ) do - :ssh_connection.reply_request(connection_handler, want_reply?, :success, channel_id) - Logger.debug("EXEC #{cmd}") - {:ok, state} - end - - def handle_ssh_msg( - {:ssh_cm, _connection_handler, {:eof, _channel_id}}, - %State{} = state - ) do - Logger.debug("EOF") - {:ok, state} - end - - def handle_ssh_msg( - {:ssh_cm, _connection_handler, {:signal, _channel_id, signal}}, - %State{} = state - ) do - Logger.debug("SIGNAL #{signal}") - {:ok, state} - end - - def handle_ssh_msg( - {:ssh_cm, _connection_handler, {:exit_signal, channel_id, signal, err, lang}}, - %State{} = state - ) do - Logger.debug("EXIT SIGNAL #{signal} #{err} #{lang}") - {:stop, channel_id, state} - end - - def handle_ssh_msg( - {:ssh_cm, _connection_handler, {:exit_STATUS, channel_id, status}}, - %State{} = state - ) do - Logger.debug("EXIT STATUS #{status}") - {:stop, channel_id, state} - end - - def handle_ssh_msg( msg, %State{channel_id: channel_id} = state ) do |