3 ms·
xterm.js is only a frontend, you still need to plug it into a backend or write you own. A VM would probably be the way to go.
by Tyriar 5y ago
xterm.js is only a frontend, you still need to plug it into a backend or write you own. A VM would probably be the way to go.
- jimmar 5y agoThanks. I was curious because the demo on the homepage doesn't appear to be communicating with a backend. (The xterm.js code just seems to interact with https://xtermjs.org/js/demo.js https://xtermjs.org/js/demo.js.) So I guess this demo presented an experience that people should expect with xterm.js, but not necessarily the standard implementation.
- Tyriar 5y agoYou can check out the source for the demo at https://github.com/xtermjs/xtermjs.org/blob/master/js/demo.js https://github.com/xtermjs/xtermjs.org/blob/master/js/demo.j..., I've actually started hacking up a more general mechanism for doing this since I've done it a few times but it's not OSS yet. If you don't need to rely on ccrypt and just want to emulate teh experience of using it, you could have an on rails experience by forking the demo file and adapting the commands part.
- ilaksh 5y agohttps://blog.stackblitz.com/posts/introducing-webcontainers/ https://blog.stackblitz.com/posts/introducing-webcontainers/