I've been working my way through the ANSI control codes standard (+ extras) for WhiteBox's new in-built console.
We're capturing stdout & stderr from the user's process, reading ~all controls & handling more graphical ones than many terminals!
Can yours do curly red underlines?