>Thank you. I've applied this change and it does seem to fix things. >It shouldn't make a difference but it does. Now I just have to figure >out why. > >>+ ti.c_oflag = ONLRET; >> console->tcsetattr (0, &ti); In order to operate properly console handler should be set by default to non-binary mode. Sergey Okhapkin, http://www.lexa.ru/sos Piscataway, NJ