We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 78cd09c commit 2585b6dCopy full SHA for 2585b6d
cmd/docker-mcp/catalog/show.go
@@ -10,7 +10,7 @@ import (
10
"time"
11
12
"github.com/mikefarah/yq/v4/pkg/yqlib"
13
- "golang.org/x/term"
+ "github.com/moby/term"
14
"gopkg.in/yaml.v3"
15
16
"github.com/docker/mcp-gateway/pkg/yq"
@@ -171,11 +171,12 @@ func isURL(fileOrURL string) bool {
171
}
172
173
func getTerminalWidth() int {
174
- width, _, err := term.GetSize(int(os.Stdout.Fd()))
+ fd, _ := term.GetFdInfo(os.Stdout)
175
+ ws, err := term.GetWinsize(fd)
176
if err != nil {
177
return 80
178
- return width
179
+ return int(ws.Width)
180
181
182
func wrapText(text string, width int, indent string) string {
0 commit comments