summaryrefslogtreecommitdiff
path: root/client/setup.c
diff options
context:
space:
mode:
authorlonkaars <loek@pipeframe.xyz>2022-05-30 12:31:23 +0200
committerlonkaars <loek@pipeframe.xyz>2022-05-30 12:31:23 +0200
commit03862852b128748358dcb39ce50600eef0ba1a71 (patch)
treed5052d02d7bb31a866d5829eb05cfaf9b35bfa59 /client/setup.c
parent555e5d2c0ce77dd1e031690c98ec9a1366182347 (diff)
use ncurses instead of poopy ui library
Diffstat (limited to 'client/setup.c')
-rw-r--r--client/setup.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/client/setup.c b/client/setup.c
index 5eb6c13..59e43d1 100644
--- a/client/setup.c
+++ b/client/setup.c
@@ -1,12 +1,13 @@
#include <stdio.h>
#include <stdlib.h>
+#include <ncurses.h>
#include "../shared/bin.h"
#include "../shared/protocol.h"
#include "commands.h"
#include "serial.h"
#include "setup.h"
-#include "term.h"
+#include "ui.h"
// pointers for endianness check
static const uint16_t _test = 1;
@@ -24,7 +25,11 @@ void w2_client_setup(int argc, char **argv) {
exit(1);
}
- w2_term_raw_mode();
+ if ((g_w2_ui_win = initscr()) == NULL) {
+ printf("ncurses initscr() failed\n");
+ exit(1);
+ }
+ noecho();
w2_cmd_setup_handlers();