6 void winch_handler(int sig);
8 WINDOW* create_list_win(int height, int width, int y, int x);
11 main(int argc, char** argv)
18 signal(SIGWINCH, winch_handler);
27 init_pair(1, COLOR_CYAN, COLOR_BLACK);
28 init_pair(2, COLOR_BLACK, COLOR_CYAN);
30 getmaxyx(stdscr, height, width);
34 todo_win = create_list_win(20, 20, 5, 5);
37 while ((ch = getch()) != 113) {
39 //ofc the first thing we need is vim keys
65 winch_handler(int sig)
72 create_list_win(int height, int width, int y, int x)
74 WINDOW* new_win = newwin(height, width, y, x);