terminal

package
v2.9.60+incompatible Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2016 License: 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,

	"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