From bdf99b4ee989df1813745e1dfd2983689b09ca85 Mon Sep 17 00:00:00 2001 From: Logan Hunt Date: Tue, 17 Jan 2023 14:00:18 -0700 Subject: Persistent game (#5) * Remove unnecessary server in board * Initial persistent games * Remove done chessh README stuff, warning issue * Show current players and move * Add promotion * Merge default changeset on all status --- lib/chessh/ssh/tui.ex | 42 ------------------------------------------ 1 file changed, 42 deletions(-) (limited to 'lib/chessh/ssh/tui.ex') 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} = @@ -161,47 +160,6 @@ defmodule Chessh.SSH.Tui do {:ok, %State{state | client_pid: client_pid}} 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 -- cgit v1.2.3-70-g09d2