Terminfo(3)

🌸 NAME 🌸

Terminfo β€” basic interface to the terminfo database. Also hiii, this is the Terminfo(3) page in the OCaml library manual, bestie πŸ’…βœ¨


🧩 Module 🧩

Module Terminfo

πŸ“š Documentation πŸ“š

Module Terminfo

: sig end

Basic interface to the terminfo database. πŸ’–

Warning: this module is unstable and part of Compiler_libs.

okay so status is literally this type, no cap:

type status =
 | Uninitialised
 | Bad_term
 | Good_term

and here’s the whole val lineup, exact signatures and all πŸ‘‘:

  • val setup : out_channel -> status β€” takes an out_channel and gives you back a status.
  • val num_lines : out_channel -> int β€” takes an out_channel and gives you back an int.
  • val backup : out_channel -> int -> unit β€” takes an out_channel and an int, returns unit.
  • val standout : out_channel -> bool -> unit β€” takes an out_channel and a bool, returns unit.
  • val resume : out_channel -> int -> unit β€” takes an out_channel and an int, returns unit.

okay bestie, that’s the whole page β€” huge kisses from OCamldoc, dated 2026-06-22, and yes this was Terminfo(3) πŸ’–βœ¨

πŸ“¦ where this page comes from