@xterm/xterm 6.1.0-beta.86 → 6.1.0-beta.87
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +23 -21
- package/lib/xterm.js +1 -1
- package/lib/xterm.js.map +1 -1
- package/lib/xterm.mjs +1 -1
- package/lib/xterm.mjs.map +1 -1
- package/package.json +2 -2
- package/src/common/Version.ts +1 -1
- package/typings/xterm.d.ts +0 -2
package/README.md
CHANGED
|
@@ -1,27 +1,29 @@
|
|
|
1
|
-
|
|
1
|
+
<div>
|
|
2
|
+
<a href="https://xtermjs.org/"><img src="/images/logo-full.png" srcset="/images/logo-full.png 1x, /images/logo-full-x2.png 2x"></a>
|
|
3
|
+
</div>
|
|
2
4
|
|
|
3
|
-
Xterm.js is a
|
|
5
|
+
Xterm.js is a frontend component that enables applications to bring fully-featured terminals to their users in the browser. It's used by popular projects such as [VS Code](https://code.visualstudio.com/) (and its forks), [Tabby](https://tabby.sh/) and [Hyper](https://hyper.is/).
|
|
4
6
|
|
|
5
7
|
## Features
|
|
6
8
|
|
|
7
9
|
- **Terminal apps just work**: Xterm.js works with most terminal apps such as `bash`, `vim`, and `tmux`, including support for curses-based apps and mouse events.
|
|
8
|
-
- **Performant**: Xterm.js is *really* fast
|
|
10
|
+
- **Performant**: Xterm.js is *really* fast and includes an optional GPU-accelerated renderer.
|
|
9
11
|
- **Rich Unicode support**: Supports CJK, emojis, and IMEs.
|
|
10
|
-
- **Self-contained**:
|
|
11
|
-
- **Accessible**: Screen reader and minimum contrast ratio support can be turned on.
|
|
12
|
-
- **And much more**: Links, theming, addons, well documented API, etc.
|
|
12
|
+
- **Self-contained**: The core library has zero dependencies.
|
|
13
|
+
- **Accessible**: Screen reader mode and minimum contrast ratio support can be turned on.
|
|
14
|
+
- **And much more**: Links, theming, custom glyphs, addons, well documented API, etc.
|
|
13
15
|
|
|
14
16
|
## What xterm.js is not
|
|
15
17
|
|
|
16
18
|
- Xterm.js is not a terminal application that you can download and use on your computer.
|
|
17
|
-
- Xterm.js is not `bash`. Xterm.js can be connected to processes like `bash` and let you interact with them (provide input, receive output).
|
|
19
|
+
- Xterm.js is not `bash`. Xterm.js can be connected to processes like `bash` and let you interact with them (provide input, receive output) through a library like [node-pty](https://github.com/microsoft/node-pty).
|
|
18
20
|
|
|
19
21
|
## Getting Started
|
|
20
22
|
|
|
21
|
-
First, you need to install the module
|
|
23
|
+
First, you need to install the module. We ship exclusively through [npm](https://www.npmjs.com), so you need that installed and then add [@xterm/xterm](https://www.npmjs.com/package/@xterm/xterm) as a dependency by running:
|
|
22
24
|
|
|
23
25
|
```bash
|
|
24
|
-
npm install @xterm/xterm
|
|
26
|
+
npm install --save @xterm/xterm
|
|
25
27
|
```
|
|
26
28
|
|
|
27
29
|
To start using xterm.js on your browser, add the `xterm.js` and `xterm.css` to the head of your HTML page. Then create a `<div id="terminal"></div>` onto which xterm can attach itself. Finally, instantiate the `Terminal` object and then call the `open` function with the DOM object of the `div`.
|
|
@@ -54,12 +56,10 @@ import { Terminal } from '@xterm/xterm';
|
|
|
54
56
|
|
|
55
57
|
### Addons
|
|
56
58
|
|
|
57
|
-
⚠️ *This section describes the new addon format introduced in v3.14.0, see [here](https://github.com/xtermjs/xterm.js/blob/3.14.2/README.md#addons) for the instructions on the old format*
|
|
58
|
-
|
|
59
59
|
Addons are separate modules that extend the `Terminal` by building on the [xterm.js API](https://github.com/xtermjs/xterm.js/blob/master/typings/xterm.d.ts). To use an addon, you first need to install it in your project:
|
|
60
60
|
|
|
61
61
|
```bash
|
|
62
|
-
npm
|
|
62
|
+
npm install --save @xterm/addon-web-links
|
|
63
63
|
```
|
|
64
64
|
|
|
65
65
|
Then import the addon, instantiate it and call `Terminal.loadAddon`:
|
|
@@ -80,33 +80,35 @@ The xterm.js team maintains the following addons, but anyone can build them:
|
|
|
80
80
|
- [`@xterm/addon-clipboard`](https://github.com/xtermjs/xterm.js/tree/master/addons/addon-clipboard): Access the browser's clipboard
|
|
81
81
|
- [`@xterm/addon-fit`](https://github.com/xtermjs/xterm.js/tree/master/addons/addon-fit): Fits the terminal to the containing element
|
|
82
82
|
- [`@xterm/addon-image`](https://github.com/xtermjs/xterm.js/tree/master/addons/addon-image): Adds image support
|
|
83
|
+
- [`@xterm/addon-ligatures`](https://github.com/xtermjs/xterm.js/tree/master/addons/addon-ligatures): Enables rendering of ligatures
|
|
84
|
+
- [`@xterm/addon-progress`](https://github.com/xtermjs/xterm.js/tree/master/addons/addon-progress): Adds support for the progress API (`OSC 9;4`)
|
|
83
85
|
- [`@xterm/addon-search`](https://github.com/xtermjs/xterm.js/tree/master/addons/addon-search): Adds search functionality
|
|
84
|
-
- [`@xterm/addon-serialize`](https://github.com/xtermjs/xterm.js/tree/master/addons/addon-serialize): Serializes the terminal's buffer to
|
|
86
|
+
- [`@xterm/addon-serialize`](https://github.com/xtermjs/xterm.js/tree/master/addons/addon-serialize): Serializes the terminal's buffer to VT sequences or HTML
|
|
87
|
+
- [`@xterm/addon-unicode-graphemes`](https://github.com/xtermjs/xterm.js/tree/master/addons/addon-unicode-graphemes): Enhanced unicode support including grapheme clustering (experimental)
|
|
85
88
|
- [`@xterm/addon-unicode11`](https://github.com/xtermjs/xterm.js/tree/master/addons/addon-unicode11): Updates character widths to their unicode11 values
|
|
89
|
+
- [`@xterm/addon-web-fonts`](https://github.com/xtermjs/xterm.js/tree/master/addons/addon-web-fonts): Easily integrate web fonts
|
|
86
90
|
- [`@xterm/addon-web-links`](https://github.com/xtermjs/xterm.js/tree/master/addons/addon-web-links): Adds web link detection and interaction
|
|
87
91
|
- [`@xterm/addon-webgl`](https://github.com/xtermjs/xterm.js/tree/master/addons/addon-webgl): Renders xterm.js using a `canvas` element's webgl2 context
|
|
88
92
|
|
|
89
93
|
## Browser Support
|
|
90
94
|
|
|
91
|
-
Since xterm.js is typically implemented as a developer tool, only modern browsers are supported officially. Specifically the latest versions of *Chrome*, *Edge*, *Firefox*, and *Safari*.
|
|
92
|
-
|
|
93
|
-
Xterm.js works seamlessly in [Electron](https://electronjs.org/) apps and may even work on earlier versions of the browsers. These are the versions we strive to keep working.
|
|
95
|
+
Since xterm.js is typically implemented as a developer tool, generally only modern evergreen browsers are supported officially. Specifically the latest versions of *Chrome*, *Edge*, *Firefox*, and *Safari*. Xterm.js also works seamlessly in [Electron](https://electronjs.org/) apps and may even work on earlier versions of the browsers. These are the versions we strive to keep working.
|
|
94
96
|
|
|
95
97
|
### Node.js Support
|
|
96
98
|
|
|
97
|
-
We also publish [`xterm-headless`](https://www.npmjs.com/package/xterm-headless) which is a stripped down version of xterm.js that runs in Node.js. An example use case for this is to keep track of a terminal's state where the process is running and using the serialize addon so it can get all state restored upon reconnection.
|
|
99
|
+
We also publish [`xterm-headless`](https://www.npmjs.com/package/xterm-headless) which is a stripped down version of xterm.js that runs headless in Node.js. An example use case for this is to keep track of a terminal's state where the process is running and using the [serialize addon](https://www.npmjs.com/package/@xterm/addon-serialize) so it can get all state restored upon reconnection.
|
|
98
100
|
|
|
99
101
|
## API
|
|
100
102
|
|
|
101
103
|
The full API for xterm.js is contained within the [TypeScript declaration file](https://github.com/xtermjs/xterm.js/blob/master/typings/xterm.d.ts), use the branch/tag picker in GitHub (`w`) to navigate to the correct version of the API.
|
|
102
104
|
|
|
103
|
-
|
|
105
|
+
Some APIs may be marked with *experimental*, these are added to enable experimentation with new ideas without committing to support it like a normal [semver](https://semver.org/) API. Note that these APIs can change radically between versions, so be sure to read release notes if you plan on using experimental APIs.
|
|
104
106
|
|
|
105
107
|
## Releases
|
|
106
108
|
|
|
107
|
-
|
|
109
|
+
Stable releases are done on an as needed basis, beta releases are continuously published off the `master` branch and this is what the principal implementation VS Code uses. Generally the beta builds are quite stable but can potentially contain breaking changes.
|
|
108
110
|
|
|
109
|
-
All current and past releases are available on this repo's [
|
|
111
|
+
All current and past releases are available on this repo's [releases page](https://github.com/sourcelair/xterm.js/releases), you can see what's planned for upcoming releases looking through the repository [milestones](https://github.com/sourcelair/xterm.js/milestones).
|
|
110
112
|
|
|
111
113
|
### Beta builds
|
|
112
114
|
|
|
@@ -238,6 +240,6 @@ Do you use xterm.js in your application as well? Please [open a Pull Request](ht
|
|
|
238
240
|
|
|
239
241
|
If you contribute code to this project, you implicitly allow your code to be distributed under the MIT license. You are also implicitly verifying that all code is your original work.
|
|
240
242
|
|
|
241
|
-
Copyright (c) 2017-
|
|
243
|
+
Copyright (c) 2017-2026, [The xterm.js authors](https://github.com/xtermjs/xterm.js/graphs/contributors) (MIT License)<br>
|
|
242
244
|
Copyright (c) 2014-2017, SourceLair, Private Company ([www.sourcelair.com](https://www.sourcelair.com/home)) (MIT License)<br>
|
|
243
245
|
Copyright (c) 2012-2013, Christopher Jeffrey (MIT License)
|