From db79840bc68f803c23477e7c093e3cff2a7633ba Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Thu, 22 Apr 2021 13:53:56 +0200 Subject: cmd/fscrypt: use golang.org/x/term The golang.org/x/crypto/ssh/terminal package is deprecated and merely a wrapper around golang.org/x/term. Thus, use the latter directly. --- cmd/fscrypt/format.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cmd/fscrypt/format.go') diff --git a/cmd/fscrypt/format.go b/cmd/fscrypt/format.go index 576d025..fc10d31 100644 --- a/cmd/fscrypt/format.go +++ b/cmd/fscrypt/format.go @@ -29,7 +29,7 @@ import ( "unicode/utf8" "github.com/urfave/cli" - "golang.org/x/crypto/ssh/terminal" + "golang.org/x/term" "github.com/google/fscrypt/util" ) @@ -64,7 +64,7 @@ func init() { flagPaddingLength = maxShortDisplay + 2*indentLength // We use the width of the terminal unless we cannot get the width. - width, _, err := terminal.GetSize(int(os.Stdout.Fd())) + width, _, err := term.GetSize(int(os.Stdout.Fd())) if err != nil { lineLength = fallbackLineLength } else { -- cgit v1.2.3