Reputation: 1060
Suppose I want to implement a curses/console like program in HTML/CSS/Javascript. Examples might be a online text adventure game or a simple interpreter similar to the "Try the XYZ programming language now" web pages you see for languages like Ruby or Haskell. Is there a library/plugin/etc... that implements these terminal like interfaces?
Note:
After digging around for quite some time I found jquery-console, which looks quite promising at first glance.
Any other alternatives or recommendations?
Upvotes: 8
Views: 2644
Reputation: 3382
I have been using the termlib.js library for a couple of projects and it works really great. It helps with a lot of stuff like handling keyboard and parsing inputs.
It should also be less bloated than any jQuery-based solution unless you were going to use jQuery anyway.
You might want to start off looking at the readme or try some samples.
Upvotes: 11