package lambda-term

  1. Overview
  2. Docs
exception Interrupt
type prompt = LTerm_text.t
type history = Zed_utf8.t list
val common_prefix : string list -> string
val lookup : Zed_utf8.t -> Zed_utf8.t list -> Zed_utf8.t list
val lookup_assoc : Zed_utf8.t -> (Zed_utf8.t * 'a) list -> (Zed_utf8.t * 'a) list
type action =
  1. | Edit of LTerm_edit.action
  2. | Interrupt_or_delete_next_char
  3. | Complete
  4. | Complete_bar_next
  5. | Complete_bar_prev
  6. | Complete_bar_first
  7. | Complete_bar_last
  8. | Complete_bar
  9. | History_prev
  10. | History_next
  11. | Accept
  12. | Clear_screen
  13. | Break
  14. | Suspend
val bind : LTerm_key.t list -> action list -> unit
val unbind : LTerm_key.t list -> unit
val actions : (action * string) list
val doc_of_action : action -> string
val action_of_name : string -> action
val name_of_action : action -> string
val macro : action Zed_macro.t
type mode =
  1. | Edition
  2. | Search
  3. | Set_counter
  4. | Add_counter
class virtual !'a engine : ?history:history -> ?clipboard:Zed_edit.clipboard -> ?macro:action Zed_macro.t -> unit -> object ... end
class virtual !'a abstract : object ... end
class read_line : ?history:history -> unit -> object ... end
class read_password : unit -> object ... end
type !'a read_keyword_result =
  1. | Rk_value of 'a
  2. | Rk_error of Zed_utf8.t
class !'a read_keyword : ?history:history -> unit -> object ... end
class virtual !'a term : LTerm.t -> object ... end
OCaml

Innovation. Community. Security.