另客网go项目公用的代码库

isatty_others.go 429B

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