package lambda-term

  1. Overview
  2. Docs
Terminal manipulation library for OCaml

Install

dune-project
 Dependency

Authors

Maintainers

Sources

lambda-term-3.2.0.tar.gz
md5=68a44ac4a5c643cf48ea927c073b4428
sha512=46cd46f47c9f34c0a5e096b96e6eec59667b645bf5201140e498e6d4eb9baba8204a2b30b73c4b2f8140e5cf1972a56e3aa485b27bc5ace25b2c368f713ad7c4

doc/lambda-term/LTerm_key/index.html

Module LTerm_keySource

Keys

Sourcetype code =
  1. | Char of CamomileLibrary.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".