summaryrefslogtreecommitdiff
path: root/lib/chessh/ssh/client.ex
blob: 35893f1418a4ef56c55a64cd7e1424b267b607d4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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