diff options
| author | Simponic <elizabeth.hunt@simponic.xyz> | 2023-01-28 22:56:10 -0700 |
|---|---|---|
| committer | Simponic <elizabeth.hunt@simponic.xyz> | 2023-01-28 22:56:10 -0700 |
| commit | 593a631a564926b5b118805b8bea13a753e4757d (patch) | |
| tree | 3f2a5460eda4ef19142b20386c7dee001f4675b5 /lib/chessh/ssh/client/client.ex | |
| parent | bb66cd91a3e76e9b746750de51b5edd34b5d2259 (diff) | |
| download | chessh-593a631a564926b5b118805b8bea13a753e4757d.tar.gz chessh-593a631a564926b5b118805b8bea13a753e4757d.zip | |
Ensure board is flipped when starting a game as dark, move some constants to environment variables, minor frontend changes:
Diffstat (limited to 'lib/chessh/ssh/client/client.ex')
| -rw-r--r-- | lib/chessh/ssh/client/client.ex | 6 |
1 files changed, 4 insertions, 2 deletions
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 |
