How to escape from a hanging stdout.read() in REPL?

This isn’t writing a newline. Maybe the subprocess is still waiting for end of line?