isatty_others.go 482 B

12345678910111213141516
  1. //go:build appengine || js || nacl || wasm
  2. // +build appengine js nacl wasm
  3. package isatty
  4. // IsTerminal returns true if the file descriptor is terminal which
  5. // is always false on js and appengine classic which is a sandboxed PaaS.
  6. func IsTerminal(fd uintptr) bool {
  7. return false
  8. }
  9. // IsCygwinTerminal() return true if the file descriptor is a cygwin or msys2
  10. // terminal. This is also always false on this environment.
  11. func IsCygwinTerminal(fd uintptr) bool {
  12. return false
  13. }