The core functionality of the portable dumb terminal, the ANSI terminal processor is a reimplementation of the control logic of the VT100 terminal.
This parser is capable of handling all escape codes in the ANSI x3.64-1979 standard, ‘level 5’ DEC private escape codes (equivalent to a VT5xx series terminal), and other terminal implementations. The parser is written in C and is extremely portable, capable of running on small, 8MHz microcontrollers.
More information can be found in my Dumb Terminal repository.