summaryrefslogtreecommitdiff
path: root/lib/chessh/ssh/client/menus
diff options
context:
space:
mode:
Diffstat (limited to 'lib/chessh/ssh/client/menus')
-rw-r--r--lib/chessh/ssh/client/menus/main_menu.ex2
-rw-r--r--lib/chessh/ssh/client/menus/select_paginate_poller.ex8
2 files changed, 6 insertions, 4 deletions
diff --git a/lib/chessh/ssh/client/menus/main_menu.ex b/lib/chessh/ssh/client/menus/main_menu.ex
index 43f916e..e858893 100644
--- a/lib/chessh/ssh/client/menus/main_menu.ex
+++ b/lib/chessh/ssh/client/menus/main_menu.ex
@@ -35,7 +35,7 @@ defmodule Chessh.SSH.Client.MainMenu do
{"Previous Games",
{Chessh.SSH.Client.SelectPreviousGame,
%Chessh.SSH.Client.SelectPaginatePoller.State{player_session: player_session}}},
- {"TrongleChat",
+ {"ChatsSH",
{Chessh.SSH.Client.TrongleChat,
%Chessh.SSH.Client.TrongleChat.State{player_session: player_session}}}
]
diff --git a/lib/chessh/ssh/client/menus/select_paginate_poller.ex b/lib/chessh/ssh/client/menus/select_paginate_poller.ex
index 5c668a0..e46fd9f 100644
--- a/lib/chessh/ssh/client/menus/select_paginate_poller.ex
+++ b/lib/chessh/ssh/client/menus/select_paginate_poller.ex
@@ -27,6 +27,8 @@ defmodule Chessh.SSH.Client.SelectPaginatePoller do
options: [],
tick: 0,
cursor: nil,
+ width: 0,
+ height: 0,
extra_info: %{}
end
@@ -112,15 +114,15 @@ defmodule Chessh.SSH.Client.SelectPaginatePoller do
{:send_to_ssh, render_state(width, height, state)}
)
- state
+ %State{state | width: width, height: height}
end
def input(
- width,
- height,
action,
_data,
%State{
+ width: width,
+ height: height,
client_pid: client_pid,
options: options,
selected_option_idx: selected_option_idx