forked from toolshed/abra
refactor: urfave v3
This commit is contained in:
3
vendor/github.com/mattn/go-isatty/isatty_windows.go
generated
vendored
3
vendor/github.com/mattn/go-isatty/isatty_windows.go
generated
vendored
@ -42,8 +42,7 @@ func IsTerminal(fd uintptr) bool {
|
||||
|
||||
// Check pipe name is used for cygwin/msys2 pty.
|
||||
// Cygwin/MSYS2 PTY has a name like:
|
||||
//
|
||||
// \{cygwin,msys}-XXXXXXXXXXXXXXXX-ptyN-{from,to}-master
|
||||
// \{cygwin,msys}-XXXXXXXXXXXXXXXX-ptyN-{from,to}-master
|
||||
func isCygwinPipeName(name string) bool {
|
||||
token := strings.Split(name, "-")
|
||||
if len(token) < 5 {
|
||||
|
Reference in New Issue
Block a user