getsize

package module
v0.0.0-...-691aeee Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2019 License: MIT Imports: 2 Imported by: 0

README

getsize

Gets terminal size.

License

Pouch is licensed under the MIT License. See LICENSE for the full license text.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetSize

func GetSize() (width, height int, err error)

GetSize returns the visible dimensions of the given terminal.

These dimensions don't include any scrollback buffer height.

func GetSizeBy

func GetSizeBy(hStdin uintptr) (width, height int, err error)

GetSizeBy returns the visible dimensions of the given terminal.

These dimensions don't include any scrollback buffer height.

func IsTerminal

func IsTerminal() bool

IsTerminal returns whether the given file descriptor is a terminal.

func IsTerminalBy

func IsTerminalBy(hStdin uintptr) bool

IsTerminalBy returns whether the given file descriptor is a terminal.

Types

This section is empty.

Jump to

Keyboard shortcuts

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