Homogenize SDL and web console implementations
jmmv opened this issue · comments
The SDL and web consoles are pretty much copy/pastes of each other. This is annoying on its own, but is extra problematic because, while we do have test coverage for the SDL console, we have none for the web console.
I'm imagining that we should have a generic framebuffer console implementation that is backed by a "raster ops" object (much like NetBSD's console system) which implements the actual drawing primitives. With that, common logic such as "open line" would be in one place. And once we have that, we can consider reimplementing the terminal console to use our own rendering.
This was done in e1392ed.