summaryrefslogtreecommitdiff
path: root/lib/chessh/ssh/client.ex
diff options
context:
space:
mode:
Diffstat (limited to 'lib/chessh/ssh/client.ex')
-rw-r--r--lib/chessh/ssh/client.ex16
1 files changed, 16 insertions, 0 deletions
diff --git a/lib/chessh/ssh/client.ex b/lib/chessh/ssh/client.ex
new file mode 100644
index 0000000..35893f1
--- /dev/null
+++ b/lib/chessh/ssh/client.ex
@@ -0,0 +1,16 @@
+defmodule Chessh.SSH.Client do
+ alias Chessh.SSH.Client
+ require Logger
+
+ use GenServer
+
+ # TODO: tui_state_stack is like [:menu, :player_settings, :change_password] or [:menu, {:game, game_id}, {:game_chat, game_id}]
+
+ defstruct [:tui_pid, :width, :height, :player_id, :tui_state_stack]
+
+ @impl true
+ def init([tui_pid, width, height] = args) do
+ Logger.debug("#{inspect(args)}")
+ {:ok, %Client{tui_pid: tui_pid, width: width, height: height}}
+ end
+end