tui

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: May 10, 2026 License: MIT Imports: 29 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNotTerminal = errors.New("stdin is not a tty")

Functions

func Run

func Run(opts model.Options, query string) error

func SetDefaultEnvForTest

func SetDefaultEnvForTest(fn func() Env)

Types

type Env

type Env struct {
	In         io.Reader
	Out        io.Writer
	FD         int
	IsTerminal func(int) bool
	MakeRaw    func(int) (*term.State, error)
	Restore    func(int, *term.State) error
	GetSize    func(int) (int, int, error)
	SignalCh   <-chan os.Signal
}

Jump to

Keyboard shortcuts

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