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