diff options
author | Paul Holzinger <pholzing@redhat.com> | 2022-01-17 17:49:00 +0100 |
---|---|---|
committer | Paul Holzinger <pholzing@redhat.com> | 2022-01-18 16:27:00 +0100 |
commit | 774271c38a8c3e96c7518b3c03de2f00e87138be (patch) | |
tree | 09532ca2680778112041ebac0576d483c2452c4f /vendor/github.com/buger/goterm/terminal.go | |
parent | 55ad6188b067ba6594819c318dd2ae92dea2f27e (diff) | |
download | podman-774271c38a8c3e96c7518b3c03de2f00e87138be.tar.gz podman-774271c38a8c3e96c7518b3c03de2f00e87138be.tar.bz2 podman-774271c38a8c3e96c7518b3c03de2f00e87138be.zip |
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>
Diffstat (limited to 'vendor/github.com/buger/goterm/terminal.go')
-rw-r--r-- | vendor/github.com/buger/goterm/terminal.go | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/vendor/github.com/buger/goterm/terminal.go b/vendor/github.com/buger/goterm/terminal.go index 7c4dfa70f..1ba6493ad 100644 --- a/vendor/github.com/buger/goterm/terminal.go +++ b/vendor/github.com/buger/goterm/terminal.go @@ -71,7 +71,7 @@ type winsize struct { // Its not recommended write to buffer dirrectly, use package Print,Printf,Println fucntions instead. var Screen *bytes.Buffer = new(bytes.Buffer) -// Get relative or absolute coordinates +// GetXY gets relative or absolute coordinates // To get relative, set PCT flag to number: // // // Get 10% of total width to `x` and 20 to y @@ -145,7 +145,7 @@ func MoveTo(str string, x int, y int) (out string) { }) } -// Return carrier to start of line +// ResetLine returns carrier to start of line func ResetLine(str string) (out string) { return applyTransform(str, func(idx int, line string) string { return fmt.Sprintf("%s%s", RESET_LINE, line) @@ -188,7 +188,7 @@ func Background(str string, color int) string { }) } -// Get console width +// Width gets console width func Width() int { ws, err := getWinsize() @@ -199,7 +199,7 @@ func Width() int { return int(ws.Col) } -// Get console height +// Height gets console height func Height() int { ws, err := getWinsize() if err != nil { @@ -208,7 +208,7 @@ func Height() int { return int(ws.Row) } -// Get current height. Line count in Screen buffer. +// CurrentHeight gets current height. Line count in Screen buffer. func CurrentHeight() int { return strings.Count(Screen.String(), "\n") } |