package inquire
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_mouse.ml.html
Source file lTerm_mouse.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 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53
(* * lTerm_mouse.ml * -------------- * Copyright : (c) 2011, Jeremie Dimino <jeremie@dimino.org> * Licence : BSD3 * * This file is a part of Lambda-Term. *) type t = { control : bool; meta : bool; shift : bool; button : button; row : int; col : int; } let compare = compare let control m = m.control let meta m = m.meta let m = m.button let row m = m.row let col m = m.col let coord m = { LTerm_geom.row = row m; col = col m } let = function | Button1 -> "Button1" | Button2 -> "Button2" | Button3 -> "Button3" | Button4 -> "Button4" | Button5 -> "Button5" | Button6 -> "Button6" | Button7 -> "Button7" | Button8 -> "Button8" | Button9 -> "Button9" let to_string m = Printf.sprintf "{ control = %B; meta = %B; shift = %B; button = %s; row = %d; col = %d }" m.control m.meta m.shift (string_of_button m.button) m.row m.col
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>