The ctlseqs library provides C API for handling ECMA-35/ECMA-48 compatible control functions, which is commonly used for communication between terminal emulators and text-based programs.
For installation instructions, see INSTALL.md.
Documentation of the library can be read online, or read with
info ctlseqs after installation.
Unix man pages are also available.