fix #6523 by reverting to blocking tty