Playing around with BBSes as a teen, I'm super familiar with ANSI codes. I remember being fascinated by how they worked after opening up a .ANS file to see their contents.
One of my earliest programming projects was creating my own diary app which used ANSI codes to let you format the text. It also kept track of your cursor movements and encoded them so that you could do neat things like write text anywhere on the screen or overwrite existing text.