summaryrefslogtreecommitdiff
path: root/lib/chessh/ssh/client/menus/select_paginate_poller.ex
diff options
context:
space:
mode:
authorElizabeth Hunt <elizabeth.hunt@simponic.xyz>2023-10-09 10:43:20 -0600
committerElizabeth Hunt <elizabeth.hunt@simponic.xyz>2023-10-09 10:43:20 -0600
commitf6fbffab85acf256c49caed991314058c931cb8f (patch)
treeea490fd7b982f89f6f8c73cce49a155dbf7fda9d /lib/chessh/ssh/client/menus/select_paginate_poller.ex
parent639b4ac9dc9ca368a9d924821feab33eca24c66e (diff)
downloadchessh-f6fbffab85acf256c49caed991314058c931cb8f.tar.gz
chessh-f6fbffab85acf256c49caed991314058c931cb8f.zip
add colors to chatssh
Diffstat (limited to 'lib/chessh/ssh/client/menus/select_paginate_poller.ex')
-rw-r--r--lib/chessh/ssh/client/menus/select_paginate_poller.ex8
1 files changed, 5 insertions, 3 deletions
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