mirror of
https://github.com/restic/restic.git
synced 2024-12-23 00:07:25 +00:00
termstatus: update import path of golang.org/x/term
This commit is contained in:
parent
b2b7669ca0
commit
e6dfefba13
1 changed files with 2 additions and 2 deletions
|
@ -9,8 +9,8 @@ import (
|
||||||
"syscall"
|
"syscall"
|
||||||
"unsafe"
|
"unsafe"
|
||||||
|
|
||||||
"golang.org/x/crypto/ssh/terminal"
|
|
||||||
"golang.org/x/sys/windows"
|
"golang.org/x/sys/windows"
|
||||||
|
"golang.org/x/term"
|
||||||
)
|
)
|
||||||
|
|
||||||
// clearCurrentLine removes all characters from the current line and resets the
|
// 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).
|
// isWindowsTerminal return true if the file descriptor is a windows terminal (cmd, psh).
|
||||||
func isWindowsTerminal(fd uintptr) bool {
|
func isWindowsTerminal(fd uintptr) bool {
|
||||||
return terminal.IsTerminal(int(fd))
|
return term.IsTerminal(int(fd))
|
||||||
}
|
}
|
||||||
|
|
||||||
func isPipe(fd uintptr) bool {
|
func isPipe(fd uintptr) bool {
|
||||||
|
|
Loading…
Reference in a new issue