package quickterface

  1. Overview
  2. Docs
Quick-to-program app interfaces in OCaml for terminal and web

Install

dune-project
 Dependency

Authors

Maintainers

Sources

quickterface-0.1.0.tbz
sha256=8261e3819564fb5d05f1f313e62b73382152591d7a4349ae5b1b08a4fc2469f3
sha512=e739a971bb0e696ab716c168419c59a3d195922d2d1e4963106a845e3442ffa085b05106f36cceeec9b806bf7d6ef2c31e98db04911fbf73c5ac0ce626449d0f

doc/quickterface.terminal_app/Quickterface_terminal_app/Window/index.html

Module Quickterface_terminal_app.WindowSource

Sourcetype t
Sourceval make : ?title:string -> unit -> t
Sourceval input_any_key : t -> refresh_render:(unit -> unit Lwt.t) -> unit -> unit Lwt.t
Sourceval input_text : prompt:string -> t -> refresh_render:(unit -> unit Lwt.t) -> unit -> string Lwt.t
Sourceval input_integer : t -> refresh_render:(unit -> unit Lwt.t) -> unit -> int Lwt.t
Sourceval input_single_selection : t -> refresh_render:(unit -> unit Lwt.t) -> options:'a list -> option_to_string:('a -> string) -> unit -> 'a Lwt.t
Sourceval input_multi_selection : t -> refresh_render:(unit -> unit Lwt.t) -> options:'a list -> option_to_string:('a -> string) -> unit -> 'a list Lwt.t
Sourceval add_log_item : t -> Log_item.t -> unit Lwt.t
Sourceval set_title : t -> string -> unit Lwt.t
Sourceval handle_event : t -> [ Notty.Unescape.event | `Resize of int * int ] -> [ `Done | `Terminate_program ]
Sourceval with_progress_bar : t -> config:Progress_bar_config.t -> refresh_render:(unit -> unit Lwt.t) -> f:(increment_progress_bar:(unit -> unit Lwt.t) -> unit -> 'a Lwt.t) -> 'a Lwt.t