diff options
author | Louie S <louie@example.com> | 2023-06-30 15:45:16 -0700 |
---|---|---|
committer | Louie S <louie@example.com> | 2023-06-30 15:45:16 -0700 |
commit | 3fc10846ca2d1b42b596fbf3d719abc1d6608c94 (patch) | |
tree | 1afc4275b72a9b5107c3f82134ec221993e91988 /src | |
parent | 33e27b2c2796aa98fb7e48079187b01a2e59d72a (diff) |
Create border
Diffstat (limited to 'src')
-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(); |