]> git.proxmox.com Git - mirror_xterm.js.git/blob - README.md
Add section on addons to README
[mirror_xterm.js.git] / README.md
1 # xterm.js
2
3 Xterm.js is a full xterm clone, written in JavaScript.
4
5 It is used at [SourceLair](https://www.sourcelair.com/home) to help people develop their applications in their browsers.
6
7 Xterm.js supplies a modular, event-based interface that lets developers build addons and themes on top of it.
8
9 ![xterm.js screenshot](xtermjs.png)
10
11 ## Addons
12
13 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 xterm.js change across versions).
14
15 To 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:
16
17 ```html
18 <script src="node_modules/src/xterm.js"></script>
19 <script src="node_modules/addons/linkify/linkify.js"></script>
20 ```
21
22 ```js
23 var xterm = new Terminal();
24 // init code...
25 xterm.linkify();
26 ```
27
28 ### Contribution and License Agreement
29
30 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.
31
32 ## License
33
34 Copyright (c) 2014-2016, SourceLair, Private Company ([www.sourcelair.com](https://www.sourcelair.com/home)) (MIT License)
35
36 Copyright (c) 2012-2013, Christopher Jeffrey (MIT License)