diff options
author | Logan Hunt <logan.hunt@usu.edu> | 2023-01-13 12:20:01 -0700 |
---|---|---|
committer | Logan Hunt <logan.hunt@usu.edu> | 2023-01-13 12:21:04 -0700 |
commit | 07eaad9b8ded7a719183eec84faaf5b168744f01 (patch) | |
tree | a6a9ea14ba261e7c5a142613d800c19774965bc1 /lib/chessh/ssh/client/screen.ex | |
parent | a93119b25033248decda7477575e214a1b254fbd (diff) | |
download | chessh-07eaad9b8ded7a719183eec84faaf5b168744f01.tar.gz chessh-07eaad9b8ded7a719183eec84faaf5b168744f01.zip |
Move renderer to its own module
Diffstat (limited to 'lib/chessh/ssh/client/screen.ex')
-rw-r--r-- | lib/chessh/ssh/client/screen.ex | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/lib/chessh/ssh/client/screen.ex b/lib/chessh/ssh/client/screen.ex index 8eb9f21..0437b23 100644 --- a/lib/chessh/ssh/client/screen.ex +++ b/lib/chessh/ssh/client/screen.ex @@ -8,22 +8,6 @@ defmodule Chessh.SSH.Client.Screen do @behaviour Chessh.SSH.Client.Screen use GenServer - @clear_codes [ - IO.ANSI.clear(), - IO.ANSI.home() - ] - - @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 - def handle_info({:render, width, height}, state), do: {:noreply, render(width, height, state)} |