Skip to content

Commit

Permalink
Merge pull request #4622 from MichaelEischer/fix-outdated-windows-import
Browse files Browse the repository at this point in the history
termstatus: update import path of golang.org/x/term
  • Loading branch information
MichaelEischer committed Jan 6, 2024
2 parents 1604922 + e6dfefb commit 0360e54
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/ui/termstatus/terminal_windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit 0360e54

Please sign in to comment.