mirror of
https://github.com/restic/restic.git
synced 2026-10-18 15:38:12 +00:00
termstatus: move cursor handling to terminal package
This commit is contained in:
1 parent
0ab38faa2e
commit
93ccc548c8
7 files changed
+31
-30
No files matched your search
@@ -33,8 +33,8 @@ import (
|
||||
"github.com/restic/restic/internal/options"
|
||||
"github.com/restic/restic/internal/repository"
|
||||
"github.com/restic/restic/internal/restic"
|
||||
"github.com/restic/restic/internal/terminal"
|
||||
"github.com/restic/restic/internal/textfile"
|
||||
"github.com/restic/restic/internal/ui/termstatus"
|
||||
"github.com/spf13/pflag"
|
||||
|
||||
"github.com/restic/restic/internal/errors"
|
||||
@@ -210,7 +210,7 @@ func stdoutIsTerminal() bool {
|
||||
}
|
||||
|
||||
func stdoutCanUpdateStatus() bool {
|
||||
return termstatus.CanUpdateStatus(os.Stdout.Fd())
|
||||
return terminal.CanUpdateStatus(os.Stdout.Fd())
|
||||
}
|
||||
|
||||
func stdoutTerminalWidth() int {
|
||||
|
||||
Reference in new issue
Block a user