char-buffered i/o working now