Submit templates for repl.it/templates here.

← Back to all posts
Template for XTerm.js
HackermonDev

What is xterm.js?

Xterm.js is an API you can use for setting up a terminal or console thing. It is what repl.it uses and I don't think there is any other terminal API. It is really cool and if you combine it with monaco editor you can create something really amazing (like repl.it)

How do I use it?

Well you can go and check out this tutorial on it at this page

What is the repl?

The repl is just an example of a project I made a while ago. Its called TerminalX, you can use the command help to get a list of commands. Comment suggestions for commands in the comments.

Voters
programmeruser
HackermonDev
Comments
hotnewtop
TheForArkLD

Ccol,but it’s cant use cat and ls and etc...

Highwayman

Pretty easy to implement, just spawn the process like a normal shell through requests like terminal.com/run?command=ls%20./ and then in node.js there is some way to spawn a process I’d have to look it up but it’s super convenient and even hands you the output instead of sending it to the standard out. @TheForArkLD

StringentDev

hey, i need this after struggling for ages. @TheForArkLD

TheForArkLD