News for hackers. Stuff that matters.
Re:Show HN: Interactive DOS prompt in an HTML5 canvas by Renaud on Friday November 07, 2014 @10:19AM (#8572858)
This could actually be very useful!

I have some old DOS-based stock-taking software that has been working for years but needs to be ported to the web to remove the hassle of maintaining and updating it across old and new machines.

Porting it to something like this instead of reworking the interface completely could help speed up the process and users wouldn't be disturbed by the switch.

Sounds silly, but sometimes these old, primitive interfaces are all you need.

EDIT: anyone knows of other libraries that simulate terminals?

Re:Show HN: Interactive DOS prompt in an HTML5 canvas by pdq on Friday November 07, 2014 @12:31PM (#8573588)
I'd look for a Javascript port of DOSBox.

A bit of googling brings up Emscripten DOSBox: https://github.com/dreamlayers/em-dosbox/

And JsDOSBox: http://sourceforge.net/projects/jsdosbox/

Re:Show HN: Interactive DOS prompt in an HTML5 canvas by malandrew on Friday November 07, 2014 @12:31PM (#8573589)
Related for the *nix folks: tty.js

https://github.com/chjj/tty.js

Re:Show HN: Interactive DOS prompt in an HTML5 canvas by ninov on Friday November 07, 2014 @08:24AM (#8572361)
I don't really get why you need to render this on a canvas. It's text only, you should be able to render this in pure HTML with some CSS.
Re:Show HN: Interactive DOS prompt in an HTML5 canvas by teh_klev on Friday November 07, 2014 @09:23AM (#8572574)
It's called hacking, scratching an itch to see what you can do using a different approach. Remember, this site is called "Hacker News".
Re:Show HN: Interactive DOS prompt in an HTML5 canvas by wbkang on Friday November 07, 2014 @09:49AM (#8572695)
I think it's pixel perfect this way.
Re:Show HN: Interactive DOS prompt in an HTML5 canvas by phonebloks on Friday November 07, 2014 @09:28AM (#8572598)
Try 'format' ;-)