From e6dfefba139c03000d38d43dd910a72e99611c44 Mon Sep 17 00:00:00 2001 From: Michael Eischer Date: Sat, 6 Jan 2024 21:59:26 +0100 Subject: [PATCH] termstatus: update import path of golang.org/x/term --- internal/ui/termstatus/terminal_windows.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/ui/termstatus/terminal_windows.go b/internal/ui/termstatus/terminal_windows.go index 7bf5b0a37..3603f16a3 100644 --- a/internal/ui/termstatus/terminal_windows.go +++ b/internal/ui/termstatus/terminal_windows.go @@ -9,8 +9,8 @@ import ( "syscall" "unsafe" - "golang.org/x/crypto/ssh/terminal" "golang.org/x/sys/windows" + "golang.org/x/term" ) // clearCurrentLine removes all characters from the current line and resets the @@ -74,7 +74,7 @@ func windowsMoveCursorUp(_ io.Writer, fd uintptr, n int) { // isWindowsTerminal return true if the file descriptor is a windows terminal (cmd, psh). func isWindowsTerminal(fd uintptr) bool { - return terminal.IsTerminal(int(fd)) + return term.IsTerminal(int(fd)) } func isPipe(fd uintptr) bool {