mirror of
https://github.com/containers/podman.git
synced 2025-11-12 17:19:57 +08:00
Bump github.com/buger/goterm from 1.0.1 to 1.0.4
Bumps [github.com/buger/goterm](https://github.com/buger/goterm) from 1.0.1 to 1.0.4. - [Release notes](https://github.com/buger/goterm/releases) - [Commits](https://github.com/buger/goterm/compare/v1.0.1...v1.0.4) --- updated-dependencies: - dependency-name: github.com/buger/goterm dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com>
This commit is contained in:
9
vendor/github.com/buger/goterm/terminal.go
generated
vendored
9
vendor/github.com/buger/goterm/terminal.go
generated
vendored
@@ -199,15 +199,6 @@ func Width() int {
|
||||
return int(ws.Col)
|
||||
}
|
||||
|
||||
// Height gets console height
|
||||
func Height() int {
|
||||
ws, err := getWinsize()
|
||||
if err != nil {
|
||||
return -1
|
||||
}
|
||||
return int(ws.Row)
|
||||
}
|
||||
|
||||
// CurrentHeight gets current height. Line count in Screen buffer.
|
||||
func CurrentHeight() int {
|
||||
return strings.Count(Screen.String(), "\n")
|
||||
|
||||
Reference in New Issue
Block a user