terminal

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2025 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New() (*Term, CloseFunc, *sync.WaitGroup)

Types

type CloseFunc

type CloseFunc func() error

type Term

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

func (*Term) AppendPrompt

func (t *Term) AppendPrompt(prompt string)

func (*Term) Close

func (t *Term) Close()

func (*Term) GetOutLoc

func (t *Term) GetOutLoc() io.Writer

func (*Term) OnMessage

func (t *Term) OnMessage(f func(line string))

func (*Term) Reader

func (t *Term) Reader(wg *sync.WaitGroup)

Jump to

Keyboard shortcuts

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