terminal

package
v6.53.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2020 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TerminalHelper

type TerminalHelper interface {
	StdStreams() (stdin io.ReadCloser, stdout io.Writer, stderr io.Writer)
	GetFdInfo(in interface{}) (fd uintptr, isTerminal bool)
	SetRawTerminal(fd uintptr) (*term.State, error)
	RestoreTerminal(fd uintptr, state *term.State) error
	IsTerminal(fd uintptr) bool
	GetWinsize(fd uintptr) (*term.Winsize, error)
}

func DefaultHelper

func DefaultHelper() TerminalHelper

Directories

Path Synopsis
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

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