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_key/index.html

Module LTerm_keySource

Keys

Sourcetype code =
  1. | Char of Uchar.t
    (*

    A unicode character.

    *)
  2. | Enter
  3. | Escape
  4. | Tab
  5. | Up
  6. | Down
  7. | Left
  8. | Right
  9. | F1
  10. | F2
  11. | F3
  12. | F4
  13. | F5
  14. | F6
  15. | F7
  16. | F8
  17. | F9
  18. | F10
  19. | F11
  20. | F12
  21. | Next_page
  22. | Prev_page
  23. | Home
  24. | End
  25. | Insert
  26. | Delete
  27. | Backspace

Type of key code.

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. code : code;
    (*

    The code of the key.

    *)
}

Type of key.

Sourceval compare : t -> t -> int

Same as Pervasives.compare.

Sourceval control : t -> bool
Sourceval meta : t -> bool
Sourceval code : t -> code
Sourceval to_string : t -> string

Returns the string representation of the given key.

Sourceval to_string_compact : t -> string

Returns the string representation of the given key in the form "C-M-a".

OCaml

Innovation. Community. Security.