Update Go dependencies

This commit is contained in:
Matthias Loibl 2022-06-22 16:25:58 +02:00
parent 09e1f13509
commit d3d7715750
No known key found for this signature in database
GPG key ID: 78A796CA74CA38BA
391 changed files with 73854 additions and 103071 deletions

23
vendor/github.com/mattn/go-isatty/isatty_plan9.go generated vendored Normal file
View file

@ -0,0 +1,23 @@
//go:build plan9
// +build plan9
package isatty
import (
"syscall"
)
// IsTerminal returns true if the given file descriptor is a terminal.
func IsTerminal(fd uintptr) bool {
path, err := syscall.Fd2path(int(fd))
if err != nil {
return false
}
return path == "/dev/cons" || path == "/mnt/term/dev/cons"
}
// IsCygwinTerminal return true if the file descriptor is a cygwin or msys2
// terminal. This is also always false on this environment.
func IsCygwinTerminal(fd uintptr) bool {
return false
}