package terminal_size
Build not checkedInstall
dune-project
Dependency
Authors
Maintainers
Sources
sha256=e3d05e2ec5e175b7fc8f9f96252e613da7bd8be4e07d221894f5d899afc61794
md5=b99f6a769e503dae7c04568100e29214
Description
You can use this small library to detect the dimensions of the terminal window attached to a process.
Added to opam-repository:
README
Terminal_size
What is it?
You can use this small ocaml library to detect the dimensions of the terminal window attached to a process. It contains the two following functions:
val get_rows : unit -> int option
val get_columns : unit -> int optionHow does it work?
Usually, to get this information, one would open a pipe from tput cols or stty size and parsing the output. Instead, this uses the ioctl that these commands use, TIOCGWINSZ.
Dependencies (4)
-
topkg
build -
ocamlfind
build -
ocamlbuild
build -
ocaml
>= "4.01.0"
Dev Dependencies (1)
-
alcotest
with-test
Optional Dependencies
None
Used by (1)
-
progress
< "0.2.0"
Conflicts
None
Build status
Results of building terminal_size with each compiler on check.ci.ocaml.org, run of against opam-repository 8d8d144. All results for this package.
Each result links to its build log. To keep crawlers from overloading the site, build logs require a GitHub sign-in (see ocurrent/opam-health-check). On your first log, GitHub asks you to “Authorize opam-health-check”, the OCurrent app that runs these checks; it sees only your public profile, not your repositories. The sign-in lasts 30 days.
This version is not in the latest run; the versions below are.
- good Package successfully built
- partial One of the dependencies failed to build
- bad Package failed to build
- n/a Package is not available in this environment
- internal Internal failure