From 03862852b128748358dcb39ce50600eef0ba1a71 Mon Sep 17 00:00:00 2001 From: lonkaars Date: Mon, 30 May 2022 12:31:23 +0200 Subject: use ncurses instead of poopy ui library --- client/setup.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'client/setup.c') 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 #include +#include #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(); -- cgit v1.2.3