Use stdin's FD directly instead of opening a device file.
Use stdin's FD directly instead of opening a device file.

Makes the code nicer and fixes stdin input on Windows.

JohnEarnest/ok,JohnEarnest/ok