Use golang.org/x/term for terminal width detection

Replace direct unix.IoctlGetWinsize() call with term.GetSize() for
cleaner API. No binary size change as x/sys remains an indirect
dependency.
This commit is contained in:
2025-12-18 18:36:54 +01:00
parent 58aaad4c9c
commit 0638707349
3 changed files with 5 additions and 11 deletions

3
go.mod
View File

@ -5,7 +5,7 @@ go 1.25.5
require (
github.com/go-git/go-git/v6 v6.0.0-20251216093047-22c365fcee9c
github.com/shirou/gopsutil/v4 v4.25.11
golang.org/x/sys v0.39.0
golang.org/x/term v0.38.0
)
require (
@ -30,4 +30,5 @@ require (
github.com/yusufpapurcu/wmi v1.2.4 // indirect
golang.org/x/crypto v0.46.0 // indirect
golang.org/x/net v0.48.0 // indirect
golang.org/x/sys v0.39.0 // indirect
)