package miaou-driver-term

  1. Overview
  2. Docs
Miaou terminal driver

Install

dune-project
 Dependency

Authors

Maintainers

Sources

v0.5.2.tar.gz
md5=60a3b9f181f24572a06a9492532bfdda
sha512=fcc35a275066be2900e6201782faf47503076fa4640f08cf78067835a6f447b74613009e55b2ac799adb7ca46f1bffa261fc5971753f2cc3c6bef327511c7ef6

doc/miaou-driver-term.driver/Miaou_driver_term/Term_size_detection/index.html

Module Miaou_driver_term.Term_size_detectionSource

Sourceval detect_size : unit -> LTerm_geom.size

Portable terminal size detection. Tries multiple methods in priority order: 1. Environment variables (MIAOU_TUI_ROWS, MIAOU_TUI_COLS) 2. Lambda-term direct query 3. stty size 4. tput 5. stty -a parsing Falls back to 24x80 if all methods fail.

Results are cached to avoid spawning subprocesses on every render. Call invalidate_cache on SIGWINCH to pick up terminal resize.

Sourceval invalidate_cache : unit -> unit

Invalidate the cached terminal size. Call this on SIGWINCH.