We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 7d8f197 + a4e129c commit d342b58Copy full SHA for d342b58
windows/console.go
@@ -24,14 +24,6 @@ func GetHandleInfo(in interface{}) (uintptr, bool) {
24
}
25
26
27
-// IsConsole returns true if the given file descriptor is a Windows Console.
28
-// The code assumes that GetConsoleMode will return an error for file descriptors that are not a console.
29
-//
30
-// Deprecated: use [windows.GetConsoleMode] or [golang.org/x/term.IsTerminal].
31
-func IsConsole(fd uintptr) bool {
32
- return isConsole(fd)
33
-}
34
-
35
func isConsole(fd uintptr) bool {
36
var mode uint32
37
err := windows.GetConsoleMode(windows.Handle(fd), &mode)
0 commit comments