term

package
v0.0.0-...-1571021 Latest Latest
Warning

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

Go to latest
Published: May 5, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LettersNumbersAndSpecialCharacters = 0
)

Variables

This section is empty.

Functions

func NewDisplay

func NewDisplay() *display

func NewField

func NewField(title string, query string) *field

func NewProjectSelector

func NewProjectSelector(projects proj.Projects) *projectSelector

Types

type ExitCode

type ExitCode int
const (
	ContinueRunning ExitCode = iota + 1
	NormalExit
	AbnormalExit
)

type Terminal

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

func NewTerminal

func NewTerminal(projects proj.Projects, projectNameFilter string) *Terminal

func (Terminal) Close

func (Terminal) Close()

func (*Terminal) Cycle

func (t *Terminal) Cycle() ExitCode

func (Terminal) Init

func (Terminal) Init()

Initializes terminal. This function must be called before any other functions. Terminal must be closed using Close() function before exiting the application.

terminal := terminal.Init()
defer terminal.Close()

Jump to

Keyboard shortcuts

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