3 ms·
I wrote a tiny program that captures the content of a Linux virtual console and prints it to stdout.[1] I forgot why I wrote it, but the source code shows how t
by zuzun 11y ago
I wrote a tiny program that captures the content of a Linux virtual console and prints it to stdout.[1] I forgot why I wrote it, but the source code shows how to access foreground color, background color and the font weight.[2] You could hack it to print everything in a format that's easily parsable, write it to a file every second and do the rendering on the client side with JavaScript.
[1] https://github.com/slyrz/peep/ https://github.com/slyrz/peep/
[2] https://github.com/slyrz/peep/blob/master/peep.c#L165 https://github.com/slyrz/peep/blob/master/peep.c#L165