set_completer([function]) -> None
Set or remove the completer function.
The function is called as function(text, state),
for state in 0, 1, 2, ..., until it returns a non-string.
It should return the next possible completion starting with 'text'.
set_pre_input_hook([function]) -> None
Set or remove the pre_input_hook function.
The function is called with no arguments after the first prompt
has been printed and just before readline starts reading input