CTerm is the ANSI parsing code maintained as part of ciolib (and used by SyncTERM). The documentation is available at the SyncTERM website.