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

This commit is contained in:
RandyTheSilly committed 2024-08-05 22:29:43 -04:00
1 parent 72da94d682
commit e59cdaa88e
3 files changed
+5 -4

No files matched your search

+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