diff options
author | Elizabeth Hunt <elizabeth.hunt@simponic.xyz> | 2023-10-09 10:43:20 -0600 |
---|---|---|
committer | Elizabeth Hunt <elizabeth.hunt@simponic.xyz> | 2023-10-09 10:43:20 -0600 |
commit | f6fbffab85acf256c49caed991314058c931cb8f (patch) | |
tree | ea490fd7b982f89f6f8c73cce49a155dbf7fda9d /lib/chessh/ssh/client/menus | |
parent | 639b4ac9dc9ca368a9d924821feab33eca24c66e (diff) | |
download | chessh-f6fbffab85acf256c49caed991314058c931cb8f.tar.gz chessh-f6fbffab85acf256c49caed991314058c931cb8f.zip |
add colors to chatssh
Diffstat (limited to 'lib/chessh/ssh/client/menus')
-rw-r--r-- | lib/chessh/ssh/client/menus/main_menu.ex | 2 | ||||
-rw-r--r-- | lib/chessh/ssh/client/menus/select_paginate_poller.ex | 8 |
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 |