diff --git a/go.mod b/go.mod index 81ba09c..15db0d8 100644 --- a/go.mod +++ b/go.mod @@ -8,6 +8,7 @@ require ( github.com/pkg/sftp v1.13.6 github.com/pquerna/otp v1.4.1-0.20231130234153-3357de7c0481 golang.org/x/crypto v0.25.0 + golang.org/x/term v0.22.0 gopkg.in/ini.v1 v1.67.0 ) @@ -32,5 +33,4 @@ require ( github.com/yuin/goldmark-emoji v1.0.3 // indirect golang.org/x/net v0.27.0 // indirect golang.org/x/sys v0.23.0 // indirect - golang.org/x/term v0.22.0 // indirect ) diff --git a/src/cli/1globals.go b/src/cli/1globals.go index ecf6828..beed957 100644 --- a/src/cli/1globals.go +++ b/src/cli/1globals.go @@ -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 diff --git a/wiki/MUTN/bugs.md b/wiki/MUTN/bugs.md index a667a48..5a5816a 100644 --- a/wiki/MUTN/bugs.md +++ b/wiki/MUTN/bugs.md @@ -1,6 +1,6 @@ ## Known Bugs - MUTN CLI - Various Markdown issues resulting from the use of [Glamour](https://github.com/charmbracelet/glamour) - - Note that MUTN is currently using the older Glamour v0.7.0, as v0.8.0 introduced even more issues + - Note that MUTN is currently using the older Glamour v0.7.0, as v0.8.0 introduced a line-wrapping regression - [Odd handling of line breaks](https://github.com/charmbracelet/glamour/issues/84) - [Broken quotes](https://github.com/charmbracelet/glamour/issues/172) (seems related to line break issue) - [Extra blank lines after nested list items](https://github.com/charmbracelet/glamour/issues/102)