terminal

package
v1.120.2 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Terminal

type Terminal interface {
	ReadRawStdin(ctx context.Context, stdinCh chan<- string) (restoreTerminalFn func(), err error)
	MonitorResizeEvents(ctx context.Context, resizeEvents chan<- TerminalSize) error
}

Terminal provides an interface for interacting with the terminal

func New

func New() Terminal

New returns a new Terminal

type TerminalSize

type TerminalSize struct {
	Width  int
	Height int
}

TerminalSize represents the size of a terminal

Jump to

Keyboard shortcuts

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