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/inquire.lambda-term/LTerm_mouse/index.html

Module LTerm_mouseSource

Mouse events

Sourcetype button =
  1. | Button1
  2. | Button2
  3. | Button3
  4. | Button4
  5. | Button5
  6. | Button6
  7. | Button7
  8. | Button8
  9. | Button9

Type of mouse button.

Sourcetype t = {
  1. control : bool;
    (*

    Is the control key down ?

    *)
  2. meta : bool;
    (*

    Is the meta key down ?

    *)
  3. shift : bool;
    (*

    Is the shift key down ?

    *)
  4. button : button;
    (*

    Which button have been pressed ?

    *)
  5. row : int;
    (*

    The row at which the mouse was when the button has been pressed.

    *)
  6. col : int;
    (*

    The column at which the mouse was when the button has been pressed.

    *)
}

Type of mouse click event.

Sourceval compare : t -> t -> int

Same as Pervasives.compare.

Sourceval control : t -> bool
Sourceval meta : t -> bool
Sourceval button : t -> button
Sourceval row : t -> int
Sourceval col : t -> int
Sourceval coord : t -> LTerm_geom.coord
Sourceval to_string : t -> string

Returns the string representation of the given mouse event.

OCaml

Innovation. Community. Security.