Import upstream version 0.0~git20201215.df9cb8a
Debian Janitor
2 years ago
28 | 28 | |
29 | 29 | // IsConsole returns true if the given file descriptor is a Windows Console. |
30 | 30 | // The code assumes that GetConsoleMode will return an error for file descriptors that are not a console. |
31 | // Deprecated: use golang.org/x/sys/windows.GetConsoleMode() or golang.org/x/crypto/ssh/terminal.IsTerminal() | |
31 | // Deprecated: use golang.org/x/sys/windows.GetConsoleMode() or golang.org/x/term.IsTerminal() | |
32 | 32 | var IsConsole = isConsole |
33 | 33 | |
34 | 34 | func isConsole(fd uintptr) bool { |