6 void winch_handler(int sig);
8 WINDOW* create_list_win(int height, int width, int y, int x);
13 main(int argc, char** argv)
21 signal(SIGWINCH, winch_handler);
23 // read from task file
24 board_file = fopen(default_board_file, "r");
26 printf("File does not exist\n");
38 init_pair(1, COLOR_CYAN, COLOR_BLACK);
39 init_pair(2, COLOR_BLACK, COLOR_CYAN);
41 getmaxyx(stdscr, height, width);
45 todo_win = create_list_win(20, 20, 5, 5);
48 while ((ch = getch()) != 113) { // while not q
50 // ofc the first thing we need is vim keys
76 winch_handler(int sig)
83 create_list_win(int height, int width, int y, int x)
85 WINDOW* new_win = newwin(height, width, y, x);