libedit_unix

package
v1.10.1 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2019 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CompletionGenerator

type CompletionGenerator = common.CompletionGenerator

type EditLine

type EditLine int

func Init

func Init(appName string, wideChars bool) (EditLine, error)

func InitFiles

func InitFiles(appName string, wideChars bool, inf, outf, errf *os.File) (e EditLine, err error)

func (EditLine) AddHistory

func (el EditLine) AddHistory(line string) error

func (EditLine) Close

func (el EditLine) Close()

func (EditLine) GetLine

func (el EditLine) GetLine() (string, error)

func (EditLine) GetLineInfo

func (el EditLine) GetLineInfo() (string, int)

func (EditLine) LoadHistory

func (el EditLine) LoadHistory(file string) error

func (EditLine) RebindControlKeys

func (el EditLine) RebindControlKeys()

func (EditLine) SaveHistory

func (el EditLine) SaveHistory() error

func (EditLine) SetAutoSaveHistory

func (el EditLine) SetAutoSaveHistory(file string, autoSave bool)

func (EditLine) SetCompleter

func (el EditLine) SetCompleter(gen CompletionGenerator)

func (EditLine) SetLeftPrompt

func (el EditLine) SetLeftPrompt(prompt string)

func (EditLine) SetRightPrompt

func (el EditLine) SetRightPrompt(prompt string)

func (EditLine) Stderr

func (el EditLine) Stderr() *os.File

func (EditLine) Stdin

func (el EditLine) Stdin() *os.File

func (EditLine) Stdout

func (el EditLine) Stdout() *os.File

func (EditLine) UseHistory

func (el EditLine) UseHistory(maxEntries int, dedup bool) error

Jump to

Keyboard shortcuts

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