Based on the original JS version with some minor "flavor" modifications.
See the live demo here.
Does not work so great at the moment.
- Install Node JS
- Install Parcel (Javascript asset bundler)
- Since this is a TS project, code is best viewed in VSCode. You get intellisense, realtime type checking and all that other nice stuff. Try it.
git clone https://github.com/RickCarlino/retro-ts.git
cd retrojs
npm install
parcel server index.html
Visit http://localhost:1234/
NODE_ENV=production parcel build index.html --public-url ./
Files in ./dist
can be uploaded to a webserver.
- Add Monaco Editor to page instead of HTML text box.
- Add VT100.js to page instead of HTML text box.
- Improve canvas support
- Use a
step()
function instead of a loop to avoid blocking main thread (usesetInerval(0,...)
instead).