terminal

package
v0.0.0-...-49b44fb Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2019 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TermInfo

type TermInfo struct {
	IsTerminal  bool
	HeightLines int
	WidthCols   int
}

TermInfo tells you info about a terminal.

func GetTermInfo

func GetTermInfo(w io.Writer) (TermInfo, error)

GetTermInfo returns info about the current file descriptor; is it a terminal, and if so, what's it's height and width?

Jump to

Keyboard shortcuts

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