I was looking at writing a VT/Linux terminal emulator for the Apple II+ [...]
You might be interested in
It‘s an assembly language VT100 emulation for the //e 80 col display. Given
that there‘s also a variant for the C64 and the Atari you can presume that
it‘s rather well suited to be adjusted to a different display.