terminal

package
v1.0.17 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2023 License: GPL-2.0, MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrPromptAborted = liner.ErrPromptAborted
)
View Source
var Exports = map[string]interface{}{
	"new":       New,
	"supported": liner.TerminalSupported,
	"mode":      liner.TerminalMode,

	"New":       New,
	"Supported": liner.TerminalSupported,
	"Mode":      liner.TerminalMode,

	"ErrPromptAborted": ErrPromptAborted,
}

Exports is the export table of this module.

Functions

This section is empty.

Types

type Terminal

type Terminal struct {
	*liner.State
	// contains filtered or unexported fields
}

func New

func New(promptFirst, promptNext string, fnReadMore func(expr string, line string) (string, bool)) *Terminal

func (*Terminal) LoadHistroy

func (term *Terminal) LoadHistroy(historyFile string) error

func (*Terminal) SaveHistroy

func (term *Terminal) SaveHistroy(historyFile string) error

func (*Terminal) Scan

func (term *Terminal) Scan() (string, error)

Jump to

Keyboard shortcuts

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