Do not use deprecated golang.org/x/crypto/ssh/terminal

This commit is contained in:
2024-08-05 22:29:43 -04:00
parent 72da94d682
commit e59cdaa88e
3 changed files with 5 additions and 4 deletions
+3 -2
View File
@@ -1,13 +1,14 @@
package cli
import (
termy "golang.org/x/crypto/ssh/terminal"
"os"
"golang.org/x/term"
)
// global variables used across multiple files
var (
width, _, _ = termy.GetSize(int(os.Stdout.Fd()))
width, _, _ = term.GetSize(int(os.Stdout.Fd()))
)
// global constants used across multiple files