VGA/EGA/CGA text mode drawing on a HTML5 canvas