terminal

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2023 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewWrapWriter

func NewWrapWriter(out output.ConsoleWriter, t *TerminalApp) io.Writer

Types

type App

type App interface {
	Event(key input.Key, in []byte) (exit bool)
	Clear()
	Refresh()
	ExitSign(code int)
	UpdateWinSize(*input.WinSize)
	Setup(*input.WinSize)
	TearDown()
	IsInTask() bool
}

type TerminalApp

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

func NewTerminalApp

func NewTerminalApp(in input.ConsoleParser) *TerminalApp

func (*TerminalApp) EnterRaw

func (t *TerminalApp) EnterRaw() (err error)

func (*TerminalApp) ExitRaw

func (t *TerminalApp) ExitRaw() (err error)

func (*TerminalApp) GetCurrentApp

func (t *TerminalApp) GetCurrentApp() App

func (*TerminalApp) Run

func (t *TerminalApp) Run(app App)

func (*TerminalApp) Stop

func (t *TerminalApp) Stop()

Jump to

Keyboard shortcuts

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