ref: b5b6aaac6d27bf63b19361fe6ca728fb65ed1d04
parent: c3e4e1d6668ebbff981df46bcbac2bd6bcb51b35
author: penny <penny@limitedideas.org>
date: Thu Aug 14 22:50:39 EDT 2025
Use /x/term for term width
--- a/format.go
+++ b/format.go
@@ -3,11 +3,11 @@
import (
"strings"
- "github.com/chzyer/readline"
+ "golang.org/x/term"
)
func hyphenate(input string) string {- width := readline.GetScreenWidth()
+ width, _, _ := term.GetSize(int(0))
return hyphenateWithWidth(input, width)
}
--
⑨