First version with libcurses.