From a4e129caa5faf8b13058a99002c11e1024aae86e Mon Sep 17 00:00:00 2001 From: Sebastiaan van Stijn Date: Mon, 9 Feb 2026 10:57:08 +0100 Subject: [PATCH] windows: remove deprecated IsConsole function This was deprecated in 57a2131dd69588daf506fde11b5c51ac6e271025 and a32e4b28e4074792b37ba7d7f784b407fc262425, both of which were part of v0.5.0. Signed-off-by: Sebastiaan van Stijn --- windows/console.go | 8 -------- 1 file changed, 8 deletions(-) diff --git a/windows/console.go b/windows/console.go index 21e57bd..87cf355 100644 --- a/windows/console.go +++ b/windows/console.go @@ -28,14 +28,6 @@ func GetHandleInfo(in interface{}) (uintptr, bool) { return inFd, isTerminal } -// IsConsole returns true if the given file descriptor is a Windows Console. -// The code assumes that GetConsoleMode will return an error for file descriptors that are not a console. -// -// Deprecated: use [windows.GetConsoleMode] or [golang.org/x/term.IsTerminal]. -func IsConsole(fd uintptr) bool { - return isConsole(fd) -} - func isConsole(fd uintptr) bool { var mode uint32 err := windows.GetConsoleMode(windows.Handle(fd), &mode)