Falls es jemand interessiert - jemand hat Javascript für MS-DOS mit Grafikfunktionen und Sound implementiert, siehe https://github.com/SuperIlu/DOjS
ZitatWhat is it all about? It is a Javascript interpreter for MS-DOS or FreeDOS with support for GFX, mouse, keyboard and SFX (WAV and OLP).
The project is based on MuJS from @Artifex, the GRX graphics library and the sound code examples by @shdon. I developed everything with @code on Win10 using DJGPP and WSL to compile the actual code. Testing was done in DOSBox. [...]
It should be possible to create simple games and graphical applications with it. You get a 640x480x24 screen, mouse and keyboard events, the ability to load and use BMP and WAV files, you can use GRX fonts and FM sound works as well.
Es sind auch Beispiele für Grafikdemos usw. enthalten, man kann das ganze Projekt als ein ZIP herunterladen: