winsize

package
v0.0.0-...-b7d497b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 1, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

README

Note

These files are just wrappers around consolesize-go package. For unix, they resort to terminal size calculation from stdin if stdout is not directed to terminal. For windows, they currently throw an error.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetTerminalSize

func GetTerminalSize() (int, int, error)

By default, this functions calculates terminal dimensions from stdout but in case stdout isn't a the terminal, it'll calculate terminal dimensions from stdin. This functionality isn't supported for windows yet

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL