Extension for GNU Readline Library
require "readline" include line = readline("Prompt> ", true)
Reads one line with line editing. The inputted line is added to the history if add_history is true.
completion_proc = proc
Specifies a Proc object to determine completion behavior. It should take input-string, and return an array of completion candidates.
Returns the completion Proc object.
completion_case_fold = bool
Sets whether or not to ignore case on completion.
Returns true if completion ignores case.
completion_append_character = char
Specifies a character to be appended on completion. Nothing will be appended if an empty string ("") or nil is specified.
Returns a string containing a character to be appended on completion. The default is a space (" ").
Specifies VI editing mode.
Specifies Emacs editing mode.
The history buffer. It behaves just like an array.