Improve Ctrl-D detection for `winpty-agent --show-input` test mode.
Improve Ctrl-D detection for `winpty-agent --show-input` test mode.

rprichard/winpty,rprichard/winpty,rprichard/winpty,rprichard/winpty