summaryrefslogtreecommitdiff
path: root/src/draw.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/draw.c')
-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();