Something went wrong. Try again.
OCaml port of Linenoise forked from patrick.sirref.org/bruit
Something went wrong. Try again.
12345678910111213141516171819202122232425262728293031323334353637383940414243type key = | Enter | Ctrl_a | Ctrl_b | Ctrl_c | Ctrl_d | Ctrl_e | Ctrl_f | Ctrl_r | Ctrl_p | Ctrl_g | Ctrl_u | Ctrl_l | Arrow_up | Arrow_down | Arrow_left | Arrow_right | Meta_f | Meta_b | Backspace | Tab | Escape_sequence | Unknown of Uchar.t
type render_cmd = | Refresh of { prompt : bytes; buf : bytes; buf_len : int; cursor_pos : int; width : int; } | Newline | Clear_screen
type t = { read_event : unit -> [ `Key of key | `End | `Retry ]; render : render_cmd -> unit; display_width : bytes -> int -> int; get_width : unit -> int; setup : unit -> unit -> unit;}