CompletionCb
add_history
- Add a line to historycomplete
- Bind to the main completion callbackcomplete_key
load_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 = ~fn(~str, &fn(~str))
add_history
fn add_history(line: ~str) -> bool
Add a line to history
complete
fn complete(cb: CompletionCb)
Bind to the main completion callback
complete_key
fn complete_key(_v: @CompletionCb)
load_history
fn load_history(file: ~str) -> bool
Load line history from a file
read
fn read(prompt: ~str) -> Option<~str>
Print out a prompt and then wait for input and return it
save_history
fn save_history(file: ~str) -> bool
Save line history to a file
set_history_max_len
fn set_history_max_len(len: int) -> bool
Set the maximum amount of lines stored