term

package
Version: v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2021 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, MIT, MPL-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TerminalSize

func TerminalSize(w io.Writer) (int, int, error)

TerminalSize returns the current width and height of the user's terminal. If it isn't a terminal, nil is returned. On error, zero values are returned for width and height. Usually w must be the stdout of the process. Stderr won't work.

Types

This section is empty.

Source Files

Jump to

Keyboard shortcuts

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