4 ms·
There used to be this thing called SVGAlib in Linux... #include <stdlib.h> #include <vga.h> int main(void) { vga_init(); vga_setmode(G320x
by bluedino 6y ago
There used to be this thing called SVGAlib in Linux...
#include <stdlib.h>
#include <vga.h>
int main(void)
{
vga_init();
vga_setmode(G320x200x256);
vga_setcolor(4);
vga_drawpixel(10, 10);
sleep(5);
vga_setmode(TEXT);
return EXIT_SUCCESS;
}
Sure, not quite as simple as a BASIC program, but very familiar to those of us who grew up with BGI in Pascal or C.
- pjmlp 6y agoWhich required root to execute.
- jburgess777 6y agoWhen you ran basic code you were effectively root, you could peek or poke any memory address or hardware register.
- pjmlp 6y agoMy first computer was a Timer 2068, yet there is a reason why we aren't any longer running those systems.