Pasting a lot of text could cause a deadlock between writing to the input side of the pty and consuming the output side. Making the writer/input side non-blocking resolves this.
master
main