janestreet/bonsai_term: A library for building dynamic terminal apps, using bonsai

bonsai_term is a library that lets you write terminal UI (TUI) using OCaml. It uses the same programming model bonsai_web Library.

  1. 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_term and its dependencies. Specific installation instructions depend on your platform. You can find platform-specific instructions here.
  2. bonsai_term Uses OxCaml so the next thing you’ll want to do is install oxcaml By following the instructions given here.
  3. run opam install bonsai_term(This will install bonsai_term and 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

Leave a Comment