Changed console to use ncurses