aboutsummaryrefslogtreecommitdiff
path: root/client/ui.c
diff options
context:
space:
mode:
authorlonkaars <loek@pipeframe.xyz>2022-06-07 22:23:14 +0200
committerlonkaars <loek@pipeframe.xyz>2022-06-07 22:23:14 +0200
commit377a6b80fb766995566bd77047eef08e0a4b5aae (patch)
treece70846c12d7426f9550f6dc2a88e49397f4bd52 /client/ui.c
parent3e65c70da770fa31fc8acc6ab9374d908cf1ed17 (diff)
implement mode switching tab
Diffstat (limited to 'client/ui.c')
-rw-r--r--client/ui.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/client/ui.c b/client/ui.c
index 13bcfb2..cdf2f3b 100644
--- a/client/ui.c
+++ b/client/ui.c
@@ -75,6 +75,10 @@ void w2_ui_paint() {
void w2_ui_paint_statusbar() {
char temp[g_w2_ui_width];
+ for (int i = 0; i < g_w2_ui_width; i++) temp[i] = ' ';
+ w2_wmvaddnstr(g_w2_ui_pad_statusbar, 0, 0, temp, g_w2_ui_width);
+ w2_wmvaddnstr(g_w2_ui_pad_statusbar, 1, 0, temp, g_w2_ui_width);
+
g_w2_state.connected ? sprintf(temp, W2_UI_CONN_STAT_CONNECTED ", %ims %s", g_w2_state.ping,
W2_UI_CONN_STAT_PING)
: sprintf(temp, W2_UI_CONN_STAT_DISCONNECTED);