I'm a little confused--is it an interactive terminal? Or is it more like an ANSI renderer where you are producing a single static image of the final result of printing a series of bytes? I don't see any JavaScript to hint at interactivity.
Help me understand then. What would you call a library that parses ANSI codes, handles scrolling, screen movement, clearing, resets, etc?