Files
LearnGO/go/pkg/mod/github.com/go-delve/liner@v1.2.3-0.20231231155935-4726ab1d7f62/output_solaris.go
T
2024-09-19 21:38:24 -04:00

15 lines
226 B
Go

package liner
import (
"golang.org/x/sys/unix"
)
func (s *State) getColumns() bool {
ws, err := unix.IoctlGetWinsize(unix.Stdout, unix.TIOCGWINSZ)
if err != nil {
return false
}
s.columns = int(ws.Col)
return true
}