mirror of
https://github.com/containers/podman.git
synced 2025-11-12 17:19:57 +08:00
upgrade all dependencies
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>
This commit is contained in:
23
vendor/github.com/buger/goterm/terminal_windows.go
generated
vendored
Normal file
23
vendor/github.com/buger/goterm/terminal_windows.go
generated
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
// +build windows
|
||||
|
||||
package goterm
|
||||
|
||||
import (
|
||||
"os"
|
||||
|
||||
"golang.org/x/sys/windows"
|
||||
)
|
||||
|
||||
func getWinsize() (*winsize, error) {
|
||||
ws := new(winsize)
|
||||
fd := os.Stdout.Fd()
|
||||
var info windows.ConsoleScreenBufferInfo
|
||||
if err := windows.GetConsoleScreenBufferInfo(windows.Handle(fd), &info); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
ws.Col = uint16(info.Window.Right - info.Window.Left + 1)
|
||||
ws.Row = uint16(info.Window.Bottom - info.Window.Top + 1)
|
||||
|
||||
return ws, nil
|
||||
}
|
||||
Reference in New Issue
Block a user