Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #if ON_DOTNET
- is_unix = false;
- isatty = true;
- #else
- int p = (int) Environment.OSVersion.Platform;
- is_unix = (p == 4) || (p == 128);
- #if NET_4_5
- isatty = !Console.IsInputRedirected && !Console.IsOutputRedirected;
- #else
- isatty = true;
- #endif
- #endif
Add Comment
Please, Sign In to add comment