CompletionCb
add_history
- Add a line to historycomplete
- Bind to the main completion callbackload_history
- Load line history from a fileread
- Print out a prompt and then wait for input and return itsave_history
- Save line history to a fileset_history_max_len
- Set the maximum amount of lines storedrl::rustrt
CompletionCb
type CompletionCb<'self> = @fn(~str, &'self fn(~str))
add_history
unsafe fn add_history(line: &str) -> bool
Add a line to history
complete
unsafe fn complete(cb: CompletionCb)
Bind to the main completion callback
load_history
unsafe fn load_history(file: &str) -> bool
Load line history from a file
read
unsafe fn read(prompt: &str) -> Option<~str>
Print out a prompt and then wait for input and return it
save_history
unsafe fn save_history(file: &str) -> bool
Save line history to a file
set_history_max_len
unsafe fn set_history_max_len(len: int) -> bool
Set the maximum amount of lines stored