This looks quite interesting. I wonder, though, if it might be a good idea to cut back the scope of the project (at least initially). Replacing the ANSI escape sequences with something sane is a hard enough problem, I think, even if you were just going for feature parity. Fixing the colour palette problems would be amazing.