package lambda-term

  1. Overview
  2. Docs
val get_acp : unit -> int
val get_console_cp : unit -> int
val set_console_cp : int -> unit
val get_console_output_cp : unit -> int
val set_console_output_cp : int -> unit
type input =
  1. | Resize
  2. | Key of LTerm_key.t
  3. | Mouse of LTerm_mouse.t
val read_console_input : Lwt_unix.file_descr -> input Lwt.t
type text_attributes = {
  1. foreground : int;
  2. background : int;
}
type console_screen_buffer_info = {
  1. size : LTerm_geom.size;
  2. cursor_position : LTerm_geom.coord;
  3. attributes : text_attributes;
  4. window : LTerm_geom.rect;
  5. maximum_window_size : LTerm_geom.size;
}
val get_console_screen_buffer_info : Lwt_unix.file_descr -> console_screen_buffer_info
type console_mode = {
  1. cm_echo_input : bool;
  2. cm_insert_mode : bool;
  3. cm_line_input : bool;
  4. cm_mouse_input : bool;
  5. cm_processed_input : bool;
  6. cm_quick_edit_mode : bool;
  7. cm_window_input : bool;
}
val get_console_mode : Lwt_unix.file_descr -> console_mode
val set_console_mode : Lwt_unix.file_descr -> console_mode -> unit
val get_console_cursor_info : Lwt_unix.file_descr -> int * bool
val set_console_cursor_info : Lwt_unix.file_descr -> int -> bool -> unit
val set_console_cursor_position : Lwt_unix.file_descr -> LTerm_geom.coord -> unit
val set_console_text_attribute : Lwt_unix.file_descr -> text_attributes -> unit
type char_info = {
  1. ci_char : CamomileLibrary.UChar.t;
  2. ci_foreground : int;
  3. ci_background : int;
}
val fill_console_output_character : Lwt_unix.file_descr -> CamomileLibrary.UChar.t -> int -> LTerm_geom.coord -> int
OCaml

Innovation. Community. Security.