Type CompletionCb

type CompletionCb<'self> = @fn(~str, &'self fn(~str))

Function add_history

unsafe fn add_history(line: &str) -> bool

Add a line to history

Function complete

unsafe fn complete(cb: CompletionCb)

Bind to the main completion callback

Function load_history

unsafe fn load_history(file: &str) -> bool

Load line history from a file

Function read

unsafe fn read(prompt: &str) -> Option<~str>

Print out a prompt and then wait for input and return it

Function save_history

unsafe fn save_history(file: &str) -> bool

Save line history to a file

Function set_history_max_len

unsafe fn set_history_max_len(len: int) -> bool

Set the maximum amount of lines stored