term

package
v0.10.1 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsTerminal

func IsTerminal(in io.Reader) bool

func Pipe

func Pipe(execIO *ExecIO, streams *streams.Streams) (int, error)

Types

type ExecIO

type ExecIO struct {
	TTY      bool
	Stdin    io.WriteCloser
	Stdout   io.ReadCloser
	Stderr   io.ReadCloser
	Resize   func(Size) error
	ExitCode <-chan ExitCode
}

type ExitCode

type ExitCode struct {
	Code int
	Err  error
}

func ToExitCode

func ToExitCode(conn io.ReadCloser) ExitCode

type Size

type Size struct {
	Height uint16
	Width  uint16
}

Jump to

Keyboard shortcuts

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