LTerm_read_line.engineThe read-line engine. If no clipboard is provided, LTerm_edit.clipboard is used. If no macro recorder is provided, macro is used.
method insert : Uchar.t -> unitInserts the given character. Note that is it also possible to manipulate directly the edition context.
method send_action : action -> unitEvolves according to the given action.
method edit : unit Zed_edit.tThe edition engine used by this read-line engine.
method context : unit Zed_edit.contextThe context for the edition engine.
method clipboard : Zed_edit.clipboardThe clipboard used by the edition engine.
method macro : action Zed_macro.tThe macro recorder.
method input_prev : Zed_rope.tThe input before the cursor.
method input_next : Zed_rope.tThe input after the cursor.
method mode : mode React.signalThe current mode.
method stylise : bool -> LTerm_text.t * intReturns the stylised input and the position of the cursor. The argument is true if this is for the last drawing or false otherwise.
method history : (Zed_string.t list * Zed_string.t list) React.signalThe history zipper.
method message : LTerm_text.t option React.signalA message to display in the completion box. When None the completion should be displayed, and when Some msg msg should be displayed.
method interrupt : exn Lwt_mvar.tTo notify an interrupt singal
method completion_words : (Zed_string.t * Zed_string.t) list React.signalCurrent possible completions. Each completion is of the form (word, suffix) where word is the completion itself and suffix is a suffix to add if the completion is choosen.
method set_completion : ?index:int ->
int ->
(Zed_string.t * Zed_string.t) list ->
unitset_completion ?index start words sets the current completions. start is the position of the beginning of the word being completed and words is the list of possible completions with their suffixes. index is the position in the completion bar, default to 0. The result is made available through the completion_words signal.
Ask for computing completion for current input. This method should call set_completion.