diff options
Diffstat (limited to 'client/setup.c')
-rw-r--r-- | client/setup.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/client/setup.c b/client/setup.c index fd37c13..43ed135 100644 --- a/client/setup.c +++ b/client/setup.c @@ -33,12 +33,23 @@ void w2_client_setup(int argc, char **argv) { noecho(); curs_set(false); nodelay(g_w2_ui_win, true); + keypad(g_w2_ui_win, true); w2_strings_init(); w2_cmd_setup_handlers(); + w2_ui_tabbar_init(); w2_send_info(); + g_w2_ui_width = getmaxx(g_w2_ui_win); + g_w2_ui_height = getmaxy(g_w2_ui_win); + + g_w2_ui_pad_tabbar = newpad(1, g_w2_ui_width); + g_w2_ui_pad_body = newpad(g_w2_ui_height - 5, g_w2_ui_width); + g_w2_ui_pad_statusbar = newpad(2, g_w2_ui_width); + g_w2_ui_pad_seperator = newpad(1, g_w2_ui_width + 1); + scrollok(g_w2_ui_pad_body, true); + // check endianness g_w2_endianness = *_ptest; } |