daily pastebin goal
39%
SHARE
TWEET

Untitled

a guest Jan 22nd, 2019 60 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top