diff options
| author | Mitja Felicijan <mitja.felicijan@gmail.com> | 2026-02-05 00:37:32 +0100 |
|---|---|---|
| committer | Mitja Felicijan <mitja.felicijan@gmail.com> | 2026-02-05 00:37:32 +0100 |
| commit | 6960aecc25400320adee1b8802a86839326e15b6 (patch) | |
| tree | 334f7ca9491080a5e6f9a9747da77281c4958ba2 /vendor/github.com/mattn/go-isatty/isatty_others.go | |
| download | hepi-6960aecc25400320adee1b8802a86839326e15b6.tar.gz | |
Engage!
Diffstat (limited to 'vendor/github.com/mattn/go-isatty/isatty_others.go')
| -rw-r--r-- | vendor/github.com/mattn/go-isatty/isatty_others.go | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/vendor/github.com/mattn/go-isatty/isatty_others.go b/vendor/github.com/mattn/go-isatty/isatty_others.go new file mode 100644 index 0000000..7402e06 --- /dev/null +++ b/vendor/github.com/mattn/go-isatty/isatty_others.go | |||
| @@ -0,0 +1,17 @@ | |||
| 1 | //go:build (appengine || js || nacl || tinygo || wasm) && !windows | ||
| 2 | // +build appengine js nacl tinygo wasm | ||
| 3 | // +build !windows | ||
| 4 | |||
| 5 | package isatty | ||
| 6 | |||
| 7 | // IsTerminal returns true if the file descriptor is terminal which | ||
| 8 | // is always false on js and appengine classic which is a sandboxed PaaS. | ||
| 9 | func IsTerminal(fd uintptr) bool { | ||
| 10 | return false | ||
| 11 | } | ||
| 12 | |||
| 13 | // IsCygwinTerminal() return true if the file descriptor is a cygwin or msys2 | ||
| 14 | // terminal. This is also always false on this environment. | ||
| 15 | func IsCygwinTerminal(fd uintptr) bool { | ||
| 16 | return false | ||
| 17 | } | ||
