summaryrefslogtreecommitdiff
path: root/lib/chessh/ssh/client/client.ex
diff options
context:
space:
mode:
Diffstat (limited to 'lib/chessh/ssh/client/client.ex')
-rw-r--r--lib/chessh/ssh/client/client.ex6
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