]> git.proxmox.com Git - mirror_xterm.js.git/blame - README.md
Add CXX environment
[mirror_xterm.js.git] / README.md
CommitLineData
dd93e62a 1# xterm.js
51946a73 2
ab1526b0
PK
3![xterm.js build status](https://api.travis-ci.org/sourcelair/xterm.js.svg)
4
dd93e62a 5Xterm.js is a full xterm clone, written in JavaScript.
561fc59d 6
dd93e62a 7It is used at [SourceLair](https://www.sourcelair.com/home) to help people develop their applications in their browsers.
561fc59d 8
dd93e62a 9Xterm.js supplies a modular, event-based interface that lets developers build addons and themes on top of it.
561fc59d 10
d6c83696 11![xterm.js screenshot](xtermjs.png)
74848936 12
289ff809
DI
13## Demo
14
15To launch the demo simply run:
16
17```
18npm install
19npm start
20```
21
22Then open http://0.0.0.0:3000 in a web browser.
23
dab80b58
DI
24## Addons
25
26Addons 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 xterm.js change across versions).
27
28To use an addon, just include the JavaScript file after xterm.js and before the `Terminal` object has been instantiated. The function should then be exposed on the `Terminal` object:
29
30```html
31<script src="node_modules/src/xterm.js"></script>
32<script src="node_modules/addons/linkify/linkify.js"></script>
33```
34
35```js
36var xterm = new Terminal();
37// init code...
38xterm.linkify();
39```
40
289ff809 41## Contribution and License Agreement
8ac7a6eb 42
d24e0055 43If 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.
8ac7a6eb 44
51946a73
CJ
45## License
46
dd93e62a 47Copyright (c) 2014-2016, SourceLair, Private Company ([www.sourcelair.com](https://www.sourcelair.com/home)) (MIT License)
d24e0055 48
51946a73 49Copyright (c) 2012-2013, Christopher Jeffrey (MIT License)