Rewriting in C using ncurses...