Whilst working on my console enhancement patches, I've frequently felt a need to produce a screendump of the console output.
I took some time out to implement this functionality, and it's currently working well enough that it might be useful to other users, so feel free to have a look and send any feedback. Although it's quite usable, the code is definitely only intended as a proof of concept at this stage, and is in no way intended as a candidate for inclusion. In other words, this is alpha code :-). It currently only includes support for displays that use the rasops code, (well it also works in a limited sense with the vga driver). On the plus side, as well as full graphical screenshots output as ppm files, it also supports making text screendumps not only as plain ascii but also using html and css to preserve colour and underlining. As well as ready-to-apply diffs, I've also included a detailed write-up explaining how the new ioctls are added to the kernel, a bit about the wscons and rasops subsystems, etc. And obviously, if anybody is trying my other console patches and seeing output that is not being rendered correctly, then this is a useful aid to debugging and avoids the need to photograph the screen. https://research.exoticsilicon.com/articles/console_screendumps

