diff options
Diffstat (limited to 'src/draw.c')
-rw-r--r-- | src/draw.c | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -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(); |