softprops / atty

are you or are you not a tty?
MIT License
277 stars 50 forks source link

windows tests are failing #4

Closed softprops closed 8 years ago

softprops commented 8 years ago

The value of the handles returned by GetStdHandle are not 0, 1, and 2, so the standard predefined stream constants in Stdio.h (STDIN, STDOUT, and STDERR) cannot be used in functions that require a console handle.

https://msdn.microsoft.com/en-us/library/windows/desktop/ms682075(v=vs.85).aspx

The tests for std out/err are failing with a last err or 6 meaning invalid handle. Need to rethink windows again

softprops commented 8 years ago

fixed