File: output_solaris.go

package info (click to toggle)
golang-github-go-delve-liner 0.0~git20211124.709274f-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, sid, trixie
  • size: 216 kB
  • sloc: makefile: 2
file content (14 lines) | stat: -rw-r--r-- 226 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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
}