delve/vendor/github.com/peterh/liner/output_solaris.go
Alessandro Arzilli 5862e40192
go.mod: bump liner version (#2874)
Bump versio of github.com/peterh/liner to 1.2.2 that contains a fix for
a bug on windows.

Fixes #2869
2022-01-18 09:02:30 -08: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
}