allow resetting a TTY's eof state to keep reading

fixes the second issue in #6523