Added separated io with ncurses