trying ncurses for I/O