terminal

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: May 14, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Command

type Command struct {
	Cmd  string
	Args []string
}

type Terminal

type Terminal struct {
	*term.Terminal
}

func New

func New(prompt string) *Terminal

func (*Terminal) Enter

func (t *Terminal) Enter(ctx context.Context) (<-chan *Command, <-chan error)

func (*Terminal) SetPrompt

func (t *Terminal) SetPrompt(prompt string)

Jump to

Keyboard shortcuts

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