Add ncurses implementation.