From 3fc10846ca2d1b42b596fbf3d719abc1d6608c94 Mon Sep 17 00:00:00 2001 From: Louie S Date: Fri, 30 Jun 2023 15:45:16 -0700 Subject: Create border --- src/draw.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/draw.c b/src/draw.c index 75d4dbe..0e87e3e 100644 --- a/src/draw.c +++ b/src/draw.c @@ -5,6 +5,7 @@ void tui_init() { int input; // capture user input + WINDOW *w_main; // set an interrupt to end cleanly signal(SIGINT, tui_end); @@ -13,6 +14,13 @@ void tui_init() { initscr(); keypad(stdscr, TRUE); // enable arrow keys and other function keys cbreak(); // set for interactive curses applications + curs_set(0); // hide cursor + + // set main window + w_main = newwin(0, 0, 0, 0); + box(w_main, 0, 0); + refresh(); + wrefresh(w_main); input = getch(); tui_end(); -- cgit