]> git.proxmox.com Git - mirror_xterm.js.git/blob - README.md
Fix third level shifts for Mac OS and windows
[mirror_xterm.js.git] / README.md
1 # xterm.js
2
3 ![xterm.js build status](https://api.travis-ci.org/sourcelair/xterm.js.svg)
4
5 Xterm.js is a full xterm clone, written in JavaScript.
6
7 It is used at [SourceLair](https://www.sourcelair.com/home) to help people develop their applications in their browsers.
8
9 Xterm.js supplies a modular, event-based interface that lets developers build addons and themes on top of it.
10
11 ![xterm.js screenshot](xtermjs.png)
12
13 ## Demo
14
15 To launch the demo simply run:
16
17 ```
18 npm install
19 npm start
20 ```
21
22 Then open http://0.0.0.0:3000 in a web browser.
23
24 ## Addons
25
26 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).
27
28 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:
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
36 var xterm = new Terminal();
37 // init code...
38 xterm.linkify();
39 ```
40
41 ## Contribution and License Agreement
42
43 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.
44
45 ## License
46
47 Copyright (c) 2014-2016, SourceLair, Private Company ([www.sourcelair.com](https://www.sourcelair.com/home)) (MIT License)
48
49 Copyright (c) 2012-2013, Christopher Jeffrey (MIT License)