readline

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2013 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddHistory

func AddHistory(line string)

func DestroyReadline

func DestroyReadline()

DestroyReadline should be called before the program exits, to keep the terminal usable

func Readline

func Readline(prompt string) (string, bool)

func SetHistoryFile

func SetHistoryFile(f string)

func SuppressAppend

func SuppressAppend()

func SuppressEnterKey

func SuppressEnterKey()

Types

type CompleteFunc

type CompleteFunc func(text string, start, end int) (replacement string, options []string)
var Completer CompleteFunc

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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