mirror of
https://github.com/rwinkhart/MUTN.git
synced 2026-08-28 04:46:41 -04:00
Do not use deprecated golang.org/x/crypto/ssh/terminal
This commit is contained in:
+3
-2
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user