Below is a fairly comprehensive list of ANSI references:
- A parser for DEC’s ANSI-compatible video terminals: http://vt100.net/emu/dec_ansi_parser
- Xterm control sequences: https://invisible-island.net/xterm/ctlseqs/ctlseqs.html
- The TTY demystified - background information on TTYs: http://www.linusakesson.net/programming/tty/
- XTerm testing resources: https://systemundertest.org/xterm/
- ISO 2022 (describes some obscure character-encoding related escape sequences): https://en.wikipedia.org/wiki/ISO/IEC_2022
- 256-color escape sequences: http://misc.flogisoft.com/bash/tip_colors_and_formatting
- ECMA - Control Functions for Coded Character Sets: https://www.ecma-international.org/wp-content/uploads/ECMA-48_5th_edition_june_1991.pdf
- ECMA - Character Code Structure and Extension Techniques: https://www.ecma-international.org/wp-content/uploads/ECMA-35_6th_edition_december_1994.pdf
- Terminal I/O: http://www.iakovlev.org/index.html?p=1169&m=1&l1=5