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)
22 signal(SIGWINCH, winch_handler);
24 // read command line args
25 flag = getopt(argc, argv, "o:n::");
29 // read from task file (might need to check for read and write permissions)
30 board_file = fopen(optarg, "r");
32 printf("%s does not exist\n", optarg);
39 /* char to_create[]; */
40 /* to_create = (optarg == 0) ? default_board : optarg; */
42 // make sure file does not exist
43 // however, it maybe be possible that an different error has occured (besides the file not existing)
44 if (access(optarg, F_OK) == 0) {
45 printf("%s already exists\n", optarg);
48 /* printf("Successfully created %s\n", to_create); */
53 printf("Help string\n");
67 init_pair(1, COLOR_CYAN, COLOR_BLACK);
68 init_pair(2, COLOR_BLACK, COLOR_CYAN);
70 getmaxyx(stdscr, height, width);
74 todo_win = create_list_win(20, 20, 5, 5);
77 while ((ch = getch()) != 113) { // while not q
79 // ofc the first thing we need is vim keys
105 winch_handler(int sig)
112 create_list_win(int height, int width, int y, int x)
114 WINDOW* new_win = newwin(height, width, y, x);