terminal

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LocalTerminal

type LocalTerminal struct {
	// contains filtered or unexported fields
}

func NewLocalTerminal

func NewLocalTerminal() *LocalTerminal

func (*LocalTerminal) ColorsEnabled

func (fe *LocalTerminal) ColorsEnabled(colorFlag string) (bool, error)

func (*LocalTerminal) OutputIsTerminal

func (f *LocalTerminal) OutputIsTerminal(stdout *os.File) bool

check if standard output is connected to a terminal

func (*LocalTerminal) TermWidth

func (*LocalTerminal) TermWidth() (int, error)

Jump to

Keyboard shortcuts

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