package readline
Module ReadlineSource
This function must be called exactly once before any call to readline.
val readline :
?completion_fun:(string -> completion_result) ->
prompt:string ->
unit ->
string optionThis function calls the readline function of libreadline. It returns a string containing the text inputted by the user, including the new line at the end, of None if the user didn't input any text (for example by sending EOF (ctrl+d) before inputting any text).
set_word_break_chars char_list sets the list of characters that libreadline uses to split the user input for the completion to char_list. The default value is " \t\n\"\\'`@$><=;|&{(".
add_history line adds line in the libreadline history, in a new entry.
append_to_last_entry line_cont modifies the last entry of the history by appending line_cont at the end. Does nothing when the history is empty.
This exception is thrown by init when it fails to open the history file for read access.