package lambda-term

  1. Overview
  2. Docs
Terminal manipulation library for OCaml

Install

Dune Dependency

Authors

Maintainers

Sources

lambda-term-2.0.1.tbz
sha256=541cda520f42bc5551175e0d24ddec8724b9391d52da7c7253f7817972c49a5a
md5=4b4b8480fe1280e1ed2a34ed93d16675

doc/lambda-term/LTerm_ui/index.html

Module LTerm_uiSource

High level function for writing full-screen applications

Sourcetype t

Type of a user interface.

Sourceval create : LTerm.t -> ?save_state:bool -> (t -> LTerm_draw.matrix -> unit) -> t Lwt.t

create term ?save_state draw creates a new user interface. draw is used to draw the user interface. If save_state is true (the default) then the state of the terminal is saved.

Sourceval quit : t -> unit Lwt.t

quit () quit the given ui and restore the terminal state.

Sourceval size : t -> LTerm_geom.size

size ui returns the current size of the terminal used by the given user-interface. It is updated by wait.

Sourceval draw : t -> unit

draw ui enqueue a draw operation for the given UI.

Sourceval cursor_visible : t -> bool

cursor_visible ui returns true if the cursor is displayed in the UI. It is initially not visible.

Sourceval set_cursor_visible : t -> bool -> unit

set_cursor_visible ui visible sets the cursor visible state.

Sourceval cursor_position : t -> LTerm_geom.coord

cursor_position ui returns the position of the cursor inside the UI.

Sourceval set_cursor_position : t -> LTerm_geom.coord -> unit

set_cursor_position ui coord sets the position of the cursor inside the UI.

wait ui wait for an event.

OCaml

Innovation. Community. Security.