Documentation
¶
Index ¶
- Variables
- func AddHistory(s string)
- func GetCompleterDelims() string
- func LineBuffer() string
- func ParseAndBind(s string)
- func ProcessCompletion(textC *C.char, lineC *C.char, start, end int) **C.char
- func ReadHistoryFile(s string) error
- func ReadInitFile(filename string) error
- func Readline(prompt *string) *string
- func ResizeTerminal()
- func SetCompleterDelims(break_chars string)
- func SetCompletionFunction(c func(string, string, int, int) []string)
- func WriteHistoryFile(s string) error
Constants ¶
This section is empty.
Variables ¶
var (
HistoryLength = -1 // Maximum number of lines in the history file.
)
Functions ¶
func AddHistory ¶
func AddHistory(s string)
AddHistory adds a string to the end of the history list.
func GetCompleterDelims ¶
func GetCompleterDelims() string
GetCompleterDemils gets current word delimiters for tab-completion.
func ParseAndBind ¶
func ParseAndBind(s string)
ParseAndBind parses line as if it had been read from the inputrc file and performs any key bindings and variable assignments found.
func ProcessCompletion ¶
func ReadHistoryFile ¶
ReadHistory loads a readline history file. The default filename is ~/.history.
func ReadInitFile ¶
ReadInitFile reads keybindings and variable assignments from filename. The default filename is the last filename used.
func ResizeTerminal ¶
func ResizeTerminal()
ResizeTerminal updates the internal screen size by reading values from the kernel.
func SetCompleterDelims ¶
func SetCompleterDelims(break_chars string)
SetCompleterDelims sets the word delimiters for tab-completion.
func SetCompletionFunction ¶
SetCompletionFunction sets the function that will be used when the user invokes completion.
The four arguments received by the function are:
- The current word being matched, up to the cursor
- The entire line
- The begining of the current word
- The end of the current word
func WriteHistoryFile ¶
WriteHistory saves a readline history file. The default filename is ~/.history.
Types ¶
This section is empty.