aboutsummaryrefslogtreecommitdiff
path: root/client/ui.h
diff options
context:
space:
mode:
authorlonkaars <loek@pipeframe.xyz>2022-06-07 10:58:01 +0200
committerlonkaars <loek@pipeframe.xyz>2022-06-07 10:58:01 +0200
commit0b246d96f4928755b50a005dd954f051c717ed02 (patch)
treed6763257d11f79beb1f6c10bfc0fd7fa6ee0072d /client/ui.h
parent9256315371ad5a67eaee80cf7453d2885a59f5c3 (diff)
implemented tab key handlers
Diffstat (limited to 'client/ui.h')
-rw-r--r--client/ui.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/client/ui.h b/client/ui.h
index bc74144..eb09739 100644
--- a/client/ui.h
+++ b/client/ui.h
@@ -19,8 +19,11 @@ extern int g_w2_ui_pad_body_scroll;
extern unsigned int g_w2_ui_width;
extern unsigned int g_w2_ui_height;
extern void (*g_w2_tab_ptrs[W2_UI_TAB_COUNT])(bool first);
+extern void (*g_w2_keyhndl_ptrs[W2_UI_TAB_COUNT])(int key);
extern w2_e_ui_tabs g_w2_ui_current_tab;
+void w2_ui_switch_tab(w2_e_ui_tabs next_tab);
+
/** update terminal props */
void w2_ui_update();
/** clear screen */
@@ -40,6 +43,8 @@ void w2_ui_tabbar_init();
void w2_ui_tab_dirc(bool first);
void w2_ui_tab_start(bool first);
void w2_ui_tab_errcatch(bool first);
+void w2_ui_onkey_dirc(int ch);
+void w2_ui_onkey_errcatch(int ch);
void w2_wmvaddstr(WINDOW *win, unsigned int y, unsigned int x, char *str);
void w2_wmvaddnstr(WINDOW *win, unsigned int y, unsigned int x, char *str, unsigned int len);