mirror of
https://github.com/containers/podman.git
synced 2026-03-15 13:17:39 -04:00
The dependabot does not update dependencies when they do not use a tag. This patch upgrades all untagged depenencies if possible. You can upgrade all dependencies with `go get -u ./... && make vendor` in theory however this failed since the k8s changes do not compile on go v1.16 so I only updated the other dependencies. Signed-off-by: Paul Holzinger <pholzing@redhat.com>
20 lines
302 B
Go
20 lines
302 B
Go
// +build !windows,!plan9,!solaris
|
|
|
|
package goterm
|
|
|
|
import (
|
|
"os"
|
|
|
|
"golang.org/x/sys/unix"
|
|
)
|
|
|
|
func getWinsize() (*unix.Winsize, error) {
|
|
|
|
ws, err := unix.IoctlGetWinsize(int(os.Stdout.Fd()), unix.TIOCGWINSZ)
|
|
if err != nil {
|
|
return nil, os.NewSyscallError("GetWinsize", err)
|
|
}
|
|
|
|
return ws, nil
|
|
}
|