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 remendations?
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 remendations?
Share Improve this question asked Dec 29, 2011 at 2:03 Rex ButlerRex Butler 1,0602 gold badges13 silver badges25 bronze badges 2- TryHaskell's footer says it uses jquery-console, so if you're looking for similar functionality that sounds like a good choice. You can make your own GitHub fork for custom features, too. – Ry- ♦ Commented Dec 29, 2011 at 2:09
- Hey, I have a little webapp I made for my Minecraft server. Goto termtm./sites/mcos/admin.html in chrome, and check it out. Also email me @ [email protected] and I probably could help you out. – TERMtm Commented Dec 29, 2011 at 2:27
1 Answer
Reset to default 11I 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.