xterm2 is a terminal front-end component written in JavaScript that works in the browser.
It enables applications to provide fully featured terminals to their users and create great development experiences.
xterm2 is usable as a drop-in replacement of xterm, is all situation (client side, browserify, electron/nw.js) as it provides the same surface API & signatures.
lighweight
ES6 based
commonJS module design (so node / tests works without transpiling)
sane API
no 'build' system, this is just a library for your application to use
emit('reset') event on terminal reset
npm install xterm2
# var Terminal = require('xterm2');
bash
, git
etc.vim
, tmux
etc.bash
. xterm2 can be connected to processes like bash
and let you interact with them (provide input, receive output), see demoTo launch the demo simply run:
npm install
npm run demo
Then open http://localhost:3000/
Addons are JavaScript modules that attach functions to the Terminal
prototype to extend its functionality. There are a handful available in the main repository in the addons
directory, you can even write your own (though they may break when the internals of xterm2 change across versions).
See the demo app for addon-usage sample.
If you contribute code to this project, you are implicitly allowing your code to be distributed under the MIT license. You are also implicitly verifying that all code is your original work.
xterm2 Copyright (c) 2016, Francois Leurent (MIT License)
xterm.js Copyright (c) 2014-2016, SourceLair, Private Company (MIT License)
xterm.js Copyright (c) 2012-2013, Christopher Jeffrey (MIT License)