summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLouie S <louie@example.com>2023-06-30 15:45:16 -0700
committerLouie S <louie@example.com>2023-06-30 15:45:16 -0700
commit3fc10846ca2d1b42b596fbf3d719abc1d6608c94 (patch)
tree1afc4275b72a9b5107c3f82134ec221993e91988 /src
parent33e27b2c2796aa98fb7e48079187b01a2e59d72a (diff)
Create border
Diffstat (limited to 'src')
-rw-r--r--src/draw.c8
1 files changed, 8 insertions, 0 deletions
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();