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