From 2ce03d4796ad54f332c70ff88f0a9f3a164bbc4a Mon Sep 17 00:00:00 2001 From: Simponic Date: Wed, 11 Jan 2023 09:54:05 -0700 Subject: Checkpoint\? --- lib/chessh/ssh/screens/screen.ex | 22 ---------------------- 1 file changed, 22 deletions(-) delete mode 100644 lib/chessh/ssh/screens/screen.ex (limited to 'lib/chessh/ssh/screens/screen.ex') diff --git a/lib/chessh/ssh/screens/screen.ex b/lib/chessh/ssh/screens/screen.ex deleted file mode 100644 index 3d9e9ec..0000000 --- a/lib/chessh/ssh/screens/screen.ex +++ /dev/null @@ -1,22 +0,0 @@ -defmodule Chessh.SSH.Client.Screen do - @callback render(state :: Chessh.SSH.Client.State.t() | any()) :: any() - @callback handle_input(action :: any(), state :: Chessh.SSH.Client.State.t()) :: - Chessh.SSH.Client.State.t() - - defmacro __using__(_) do - quote do - @behaviour Chessh.SSH.Client.Screen - - @ascii_chars Application.compile_env!(:chessh, :ascii_chars_json_file) - |> File.read!() - |> Jason.decode!() - - def center_rect({rect_width, rect_height}, {parent_width, parent_height}) do - { - div(parent_height - rect_height, 2), - div(parent_width - rect_width, 2) - } - end - end - end -end -- cgit v1.2.3-70-g09d2