8

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?

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. Commented Dec 29, 2011 at 2:09
  • Hey, I have a little webapp I made for my Minecraft server. Goto termtm.com/sites/mcos/admin.html in chrome, and check it out. Also email me @ [email protected] and I probably could help you out. Commented Dec 29, 2011 at 2:27

1 Answer 1

11

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.

Sign up to request clarification or add additional context in comments.

1 Comment

I would probably use jQuery anyways, but this library looks quite nice.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.