package miaou-core
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
Miaou core/widgets (no drivers, no SDL)
Install
dune-project
Dependency
Authors
Maintainers
Sources
v0.5.2.tar.gz
md5=60a3b9f181f24572a06a9492532bfdda
sha512=fcc35a275066be2900e6201782faf47503076fa4640f08cf78067835a6f447b74613009e55b2ac799adb7ca46f1bffa261fc5971753f2cc3c6bef327511c7ef6
doc/src/miaou-core.core/narrow_modal.ml.html
Source file narrow_modal.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 54 55(******************************************************************************) (* *) (* SPDX-License-Identifier: MIT *) (* Copyright (c) 2026 Nomadic Labs <contact@nomadic-labs.com> *) (* *) (******************************************************************************) open Tui_page module Page : PAGE_SIG = struct type state = string type msg = unit type pstate = state Navigation.t type key_binding = state Tui_page.key_binding_desc (* New key handlers *) let on_key ps _ ~size:_ = (ps, Miaou_interfaces.Key_event.Bubble) let on_modal_key ps _ ~size:_ = (ps, Miaou_interfaces.Key_event.Bubble) let key_hints (_ : pstate) = [] (* Legacy key handlers *) let handle_modal_key ps _ ~size:_ = ps let handle_key ps _ ~size:_ = ps let update ps _ = ps let move ps _ = ps let refresh ps = ps let service_select ps _ = ps let service_cycle ps _ = ps let back ps = ps let has_modal _ = false let init () = Navigation.make "Your terminal is narrow (< 80 cols). For best experience, widen it. \ Press any key to dismiss." let view ps ~focus:_ ~size:_ = ps.Navigation.s let keymap (_ : pstate) = [] let handled_keys () = [] end
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>