Guest User

Untitled

a guest
Jan 22nd, 2019
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. #if ON_DOTNET
  2. is_unix = false;
  3. isatty = true;
  4. #else
  5. int p = (int) Environment.OSVersion.Platform;
  6. is_unix = (p == 4) || (p == 128);
  7.  
  8. #if NET_4_5
  9. isatty = !Console.IsInputRedirected && !Console.IsOutputRedirected;
  10. #else
  11. isatty = true;
  12. #endif
  13.  
  14. #endif
Add Comment
Please, Sign In to add comment