Ncurses implementation of a basic todo-list