After a bit of wikipediaing, I've decided the VT52 is a good model terminal with the right control codes for what we need. So, I'm thinking I'll emulate:
- ESC A/B/C/D for cursor up/down/left/right
- ESC H - cursor home
- ESC I - clear whole line
- ESC Y x y - set cursor position
- ESC E - clear screen and return to cursor home
Maybe even
- ESC b - set foreground colour
- ESC c - set background colour
Of course, the usual \n, \a, \r stuff would work too.
After a bit of wikipediaing, I've decided the VT52 is a good model terminal with the right control codes for what we need. So, I'm thinking I'll emulate:
Maybe even
Of course, the usual \n, \a, \r stuff would work too.