Terminfo(3) OCaml library Terminfo(3)

# [NAME](#NAME)

Terminfo - Basic interface to the terminfo database

# [Module](#Module)

Module Terminfo

# [Documentation](#Documentation)

Module **Terminfo**  
: **sig end**

Basic interface to the terminfo database

Warning: this module is unstable and part of **Compiler\_libs** .

*type status* =  
| Uninitialised  
| Bad\_term  
| Good\_term

*val setup* : **out\_channel -&gt; status**

*val num\_lines* : **out\_channel -&gt; int**

*val backup* : **out\_channel -&gt; int -&gt; unit**

*val standout* : **out\_channel -&gt; bool -&gt; unit**

*val resume* : **out\_channel -&gt; int -&gt; unit**

2026-09-04 OCamldoc

---

Document: Terminfo(3o) from ocaml 5.5.1-r0 (Chainguard OS)
Source: https://github.com/ocaml/ocaml
