isatty_others.go 532 B

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