bonsai_term is a library that lets you write terminal UI (TUI) using OCaml. It uses the same programming model bonsai_web Library.
- If you’re new to OCaml – or if you aren’t already – install opamThis is the package manager of OCaml and we will use it to install
bonsai_termand its dependencies. Specific installation instructions depend on your platform. You can find platform-specific instructions here. bonsai_termUses OxCaml so the next thing you’ll want to do is installoxcamlBy following the instructions given here.- run
opam install bonsai_term(This will installbonsai_termand its dependencies).
At this point you should now have bonsai_term “Established”.
to learn how to use bonsai_term You can read its MLI src/bonsai_term.mli And/or check out some examples in the bonsai_term_examples repo.
to learn how to use bonsaiYou can read the documentation in bonsai_web. (Most of those docs are targeted for the “web” version of Bonsai, so the “vdom” bits may not apply, but the “effects” https://github.com/ “state-fullness” and “incrementality” methods should all transfer.) bonsai_web In bonsai_term,
to learn how to use ocaml Here are some good resources:
If you followed the install instructions at the top of this page, you can skip to the “Install” instructions at the link above.
<a href