[英]Javascript resources for console like web applications?
Suppose I want to implement a curses/console like program in HTML/CSS/Javascript. 假设我想在HTML / CSS / Javascript中实现类似程序的curses / console。 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. 示例可能是在线文本冒险游戏或简单的解释器,类似于您在Ruby或Haskell等语言中看到的“立即尝试XYZ编程语言”网页。 Is there a library/plugin/etc... that implements these terminal like interfaces? 是否有一个库/插件/ etc ...实现这些终端类接口?
Note: 注意:
After digging around for quite some time I found jquery-console , which looks quite promising at first glance. 经过一段时间的挖掘后,我发现了jquery-console ,乍一看看起来非常有前途。
Any other alternatives or recommendations? 还有其他选择或建议吗?
I have been using the termlib.js library for a couple of projects and it works really great. 我一直在使用termlib.js库进行几个项目,它的工作非常棒。 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. 除非你打算使用jQuery,否则它应该比任何基于jQuery的解决方案都要少。
You might want to start off looking at the readme or try some samples . 您可能想要开始查看自述文件或尝试一些示例 。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.