package inquire

  1. Overview
  2. Docs
An OCaml library to create beautiful interactive CLIs

Install

Dune Dependency

Authors

Maintainers

Sources

inquire-0.2.1.tbz
sha256=0b88d89e24d4cbc0560a7c8d8ec51388990e1b27f24685029997afa52a7c720f
sha512=8b62860a8d15e41528a404a6f1b9968c3d79755607b5ea319af2e3e45516e672a785361d278279910928db4054e1800e87bcee0210ff3eabfb330713b368c827

doc/src/inquire.lambda-term/lTerm_event.ml.html

Source file lTerm_event.ml

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
(*
 * lTerm_event.ml
 * --------------
 * Copyright : (c) 2011, Jeremie Dimino <jeremie@dimino.org>
 * Licence   : BSD3
 *
 * This file is a part of Lambda-Term.
 *)

type t =
  | Resize of LTerm_geom.size
  | Key of LTerm_key.t
  | Sequence of string
  | Mouse of LTerm_mouse.t

let to_string = function
  | Resize size ->
      Printf.sprintf "Resize %s" (LTerm_geom.string_of_size size)
  | Key key ->
      Printf.sprintf "Key %s" (LTerm_key.to_string key)
  | Sequence seq ->
      Printf.sprintf "Sequence %S" seq
  | Mouse mouse ->
      Printf.sprintf "Mouse %s" (LTerm_mouse.to_string mouse)
OCaml

Innovation. Community. Security.