From 593a631a564926b5b118805b8bea13a753e4757d Mon Sep 17 00:00:00 2001 From: Simponic Date: Sat, 28 Jan 2023 22:56:10 -0700 Subject: Ensure board is flipped when starting a game as dark, move some constants to environment variables, minor frontend changes: --- lib/chessh/ssh/client/client.ex | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'lib/chessh/ssh/client/client.ex') diff --git a/lib/chessh/ssh/client/client.ex b/lib/chessh/ssh/client/client.ex index 2554d64..67aa920 100644 --- a/lib/chessh/ssh/client/client.ex +++ b/lib/chessh/ssh/client/client.ex @@ -103,7 +103,7 @@ defmodule Chessh.SSH.Client do :quit -> {:stop, :normal, state} - :previous_screen -> + :menu -> GenServer.stop(screen_pid) link_menu_screen(player_session) @@ -153,7 +153,9 @@ defmodule Chessh.SSH.Client do <<3>> -> :quit <<4>> -> :quit # C-b - <<2>> -> :previous_screen + <<2>> -> :menu + # Escape + "\e" -> :menu # Arrow keys "\e[A" -> :up "\e[B" -> :down -- cgit v1.3